summaryrefslogtreecommitdiff
path: root/test/json/json_addition_test.rb
diff options
context:
space:
mode:
authorEarlopain <[email protected]>2025-03-30 12:48:10 +0200
committergit <[email protected]>2025-03-30 17:24:05 +0000
commitd7e46543b5fc34487dbc2c784412af015dbe67f4 (patch)
tree687afecc8c682e275e4ae50c1ac885e8e1633790 /test/json/json_addition_test.rb
parent052794bfe1970e90f4f4f9e37fc362dd27903a8d (diff)
[ruby/prism] Fix parser translator when pinning hash with string keys
`StringNode` and `SymbolNode` don't have the same shape (`content` vs `value`) and that wasn't handled. I believe the logic for the common case can be reused. I simply left the special handling for implicit nodes in pattern matching and fall through otherwise. NOTE: patterns.txt is not actually tested at the moment, because it contains syntax that `parser` mistakenly rejects. But I checked manually that this doesn't introduce other failures. https://github.com/whitequark/parser/pull/1060 https://github.com/ruby/prism/commit/55adfaa895
Diffstat (limited to 'test/json/json_addition_test.rb')
0 files changed, 0 insertions, 0 deletions