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 | bc506295a30a5806b3346ed09cd679f3b8ee6f64 (patch) | |
tree | d37cb1f1b816eaa63be60f55b99eebe0a970e9eb /test/prism/ruby/ruby_parser_test.rb | |
parent | 9e5e3f1bede46ed499a809975c663ba32c34ffff (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/ruby_parser_test.rb')
-rw-r--r-- | test/prism/ruby/ruby_parser_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/prism/ruby/ruby_parser_test.rb b/test/prism/ruby/ruby_parser_test.rb index fd1dbf1ac8..a92e8080de 100644 --- a/test/prism/ruby/ruby_parser_test.rb +++ b/test/prism/ruby/ruby_parser_test.rb @@ -53,6 +53,7 @@ module Prism "alias.txt", "dsym_str.txt", "dos_endings.txt", + "heredocs_with_fake_newlines.txt", "heredocs_with_ignored_newlines.txt", "method_calls.txt", "methods.txt", |