diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-10-11 20:45:39 -0400 |
|---|---|---|
| committer | Kevin Newton <kddnewton@gmail.com> | 2023-10-13 15:31:30 -0400 |
| commit | 8bf0d381dcf199f8e2a7b40e4b51bfe275f5d2a6 (patch) | |
| tree | eaf341649bcbe45463d516245b9d4ed0e2c26657 /test | |
| parent | d0614b5254d1767cdffdd32f13897dc10facc6a2 (diff) | |
[ruby/prism] Use current_string for %s symbol literals
https://github.com/ruby/prism/commit/52504f8911
Diffstat (limited to 'test')
| -rw-r--r-- | test/prism/snapshots/whitequark/parser_slash_slash_n_escaping_in_literals.txt | 4 | ||||
| -rw-r--r-- | test/prism/unescape_test.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/prism/snapshots/whitequark/parser_slash_slash_n_escaping_in_literals.txt b/test/prism/snapshots/whitequark/parser_slash_slash_n_escaping_in_literals.txt index 20496c3cfc..35e53c9bef 100644 --- a/test/prism/snapshots/whitequark/parser_slash_slash_n_escaping_in_literals.txt +++ b/test/prism/snapshots/whitequark/parser_slash_slash_n_escaping_in_literals.txt @@ -59,7 +59,7 @@ │ ├── opening_loc: (22,0)-(22,3) = "%s{" │ ├── value_loc: (22,3)-(23,1) = "a\\\nb" │ ├── closing_loc: (23,1)-(23,2) = "}" - │ └── unescaped: "ab" + │ └── unescaped: "a\\\nb" ├── @ ArrayNode (location: (25,0)-(26,2)) │ ├── elements: (length: 1) │ │ └── @ StringNode (location: (25,3)-(26,1)) @@ -102,7 +102,7 @@ │ ├── opening_loc: (43,0)-(43,2) = ":'" │ ├── value_loc: (43,2)-(44,1) = "a\\\nb" │ ├── closing_loc: (44,1)-(44,2) = "'" - │ └── unescaped: "ab" + │ └── unescaped: "a\\\nb" ├── @ StringNode (location: (46,0)-(46,9)) │ ├── flags: ∅ │ ├── opening_loc: (46,0)-(46,9) = "<<-\"HERE\"" diff --git a/test/prism/unescape_test.rb b/test/prism/unescape_test.rb index 2e7e9fcd3e..13b0514d78 100644 --- a/test/prism/unescape_test.rb +++ b/test/prism/unescape_test.rb @@ -132,7 +132,7 @@ module Prism [Context::List.new("%W[", "]"), escapes], [Context::List.new("%i[", "]"), escapes], [Context::List.new("%I[", "]"), escapes], - # [Context::Symbol.new("%s[", "]"), escapes], + [Context::Symbol.new("%s[", "]"), escapes], # [Context::Symbol.new(":'", "'"), escapes], # [Context::Symbol.new(":\"", "\""), escapes], # [Context::RegExp.new("/", "/"), escapes], |
