summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorEarlopain <[email protected]>2025-01-10 16:18:56 +0100
committerKevin Newton <[email protected]>2025-01-11 19:09:05 -0500
commit9c962ea7926e06a57a738bd1e0232ccf09e32771 (patch)
treec37fc681e32823ced7ad31675abb274799159619 /string.c
parent110461c509a3f93060cf66c82ed44baa00e182a1 (diff)
[ruby/prism] Fix parser translator tokens for backslashes in single-quoted strings and word arrays
These are not line continuations. They either should be taken literally, or allow the word array to contain the following whitespace (newlines in this case) Before: ``` 0...1: tSTRING_BEG => "'" 1...12: tSTRING_CONTENT => "foobar\\\n" 12...16: tSTRING_CONTENT => "baz\n" 16...17: tSTRING_END => "'" 17...18: tNL => nil ``` After: ``` 0...1: tSTRING_BEG => "'" 1...6: tSTRING_CONTENT => "foo\\\n" 6...12: tSTRING_CONTENT => "bar\\\n" 12...16: tSTRING_CONTENT => "baz\n" 16...17: tSTRING_END => "'" 17...18: tNL => nil ``` https://github.com/ruby/prism/commit/b6554ad64e
Diffstat (limited to 'string.c')
0 files changed, 0 insertions, 0 deletions