[ruby/prism] Better invalid token messages

8c9bed2a4d
This commit is contained in:
Kevin Newton 2024-02-06 12:59:47 -05:00 committed by git
parent ccec209b2c
commit f5b368df0c
4 changed files with 21 additions and 7 deletions

View file

@ -16,7 +16,7 @@ module Prism
assert_equal <<~'ERROR', Debug.format_errors('"%W"\u"', false)
> 1 | "%W"\u"
| ^ expected a newline or semicolon after the statement
| ^ invalid token
| ^ invalid character `\`
| ^ expected a closing delimiter for the string literal
ERROR
end