diff options
author | Earlopain <[email protected]> | 2025-01-15 23:24:05 +0100 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2025-03-18 13:36:53 -0400 |
commit | a8adf5e006da03b8ccaa2bf900f4f077ca9888cf (patch) | |
tree | e7e6994efa7806d708033ef13fbe81dcd5c36c37 /test/prism/ruby/parser_test.rb | |
parent | fc14d3ac7d4fa14f568d2428b846f391ebdf0d62 (diff) |
[ruby/prism] Further refine string handling in the parser translator
Mostly around newlines and line continuation.
* percent arrays need special backslash handling in the ast
* Fix offset issue for heredocs with many line continuations (used wrong variable as index access)
* More refined rules on when to simplify string tokens
* Handle line continuations in squiggly heredocs
* Correctly dedent squiggly heredocs with interpolation
* Consider `':foo:` and `%s[foo]` to not be interpolation
https://github.com/ruby/prism/commit/4edfe9d981
Diffstat (limited to 'test/prism/ruby/parser_test.rb')
-rw-r--r-- | test/prism/ruby/parser_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/prism/ruby/parser_test.rb b/test/prism/ruby/parser_test.rb index e7cd06bf32..6b72beddc4 100644 --- a/test/prism/ruby/parser_test.rb +++ b/test/prism/ruby/parser_test.rb @@ -92,6 +92,11 @@ module Prism # These files are either failing to parse or failing to translate, so we'll # skip them for now. skip_all = skip_incorrect | [ +<<<<<<< HEAD +======= + "unescaping.txt", + "seattlerb/regexp_esc_C_slash.txt", +>>>>>>> 4edfe9d981 (Further refine string handling in the parser translator) ] # Not sure why these files are failing on JRuby, but skipping them for now. |