[ruby/prism] Add warning for chained comparisons

f9f3620d44
This commit is contained in:
Kevin Newton 2024-03-12 14:46:21 -04:00 committed by git
parent 157733b1b7
commit e914fa0d10
4 changed files with 27 additions and 11 deletions

View file

@ -15,7 +15,7 @@ module Prism
assert_equal <<~'ERROR', Debug.format_errors('"%W"\u"', false)
> 1 | "%W"\u"
| ^ invalid character `\`
| ^ unexpected backslash, ignoring it
| ^ unexpected local variable or method, expecting end-of-input
| ^ unterminated string meets end of file
ERROR