Commit f2a6cb2
[ruby/prism] Handle invalid string pattern key
When a pattern match is using a string as a hash pattern key and is
using it incorrectly, we were previously assuming it was a symbol.
In the case of an error, that's not the case. So we need to add a
missing node in this case.
ruby/prism@f0b06d62691 parent 48a7330 commit f2a6cb2
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17336 | 17336 | | |
17337 | 17337 | | |
17338 | 17338 | | |
17339 | | - | |
| 17339 | + | |
| 17340 | + | |
| 17341 | + | |
| 17342 | + | |
| 17343 | + | |
17340 | 17344 | | |
17341 | 17345 | | |
17342 | 17346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments