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 | fd7a10cf4a73f27a0113a6bc2a65c4c274ee11ec (patch) | |
tree | 788c85bfbff8be7d04934cd3ed54500038da252b /test/prism/ruby/parser_test.rb | |
parent | 5d138f2b436dc84b1efed86ac3328e67638887cb (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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/prism/ruby/parser_test.rb b/test/prism/ruby/parser_test.rb index b5cc45b824..370087d84a 100644 --- a/test/prism/ruby/parser_test.rb +++ b/test/prism/ruby/parser_test.rb @@ -92,12 +92,15 @@ module Prism skip_all = skip_incorrect | [ "unescaping.txt", <<<<<<< HEAD +<<<<<<< HEAD ======= "seattlerb/heredoc_with_extra_carriage_returns_windows.txt", "seattlerb/heredoc_with_only_carriage_returns_windows.txt", "seattlerb/heredoc_with_only_carriage_returns.txt", "seattlerb/pctW_lineno.txt", >>>>>>> e1c75f304b (Better handle regexp in the parser translator) +======= +>>>>>>> 4edfe9d981 (Further refine string handling in the parser translator) "seattlerb/regexp_esc_C_slash.txt", ] |