diff options
author | Noah Gibbs <[email protected]> | 2024-02-08 19:42:44 +0000 |
---|---|---|
committer | git <[email protected]> | 2024-02-09 19:49:27 +0000 |
commit | 86882565221cb709f4213e7c7699ba73f16f1107 (patch) | |
tree | 61ccd09762db8a5226b63738178bc21a7b3a3097 | |
parent | f635b4dd0e8a54ebd0aff7fbabd729fb4ad26606 (diff) |
[ruby/prism] Update lib/prism/ripper_compat.rb
https://github.com/ruby/prism/commit/2c53e017c1
Co-authored-by: Kevin Newton <[email protected]>
-rw-r--r-- | lib/prism/ripper_compat.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prism/ripper_compat.rb b/lib/prism/ripper_compat.rb index 5d488c0960..6e10737e0d 100644 --- a/lib/prism/ripper_compat.rb +++ b/lib/prism/ripper_compat.rb @@ -351,7 +351,7 @@ module Prism # Visit a SymbolNode node. def visit_symbol_node(node) - if node.opening && ['"', "'", "("].include?(node.opening[-1]) + if (opening = node.opening) && (['"', "'"].include?(opening[-1]) || opening.start_with?("%s")) bounds(node.value_loc) tstring_val = on_tstring_content(node.value.to_s) return on_dyna_symbol(on_string_add(on_string_content, tstring_val)) |