diff options
| author | ydah <t.yudai92@gmail.com> | 2024-11-28 21:07:27 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-12-02 18:38:12 +0000 |
| commit | 90404ca46004e10e4e64e7b4e648d88ffcfb65ee (patch) | |
| tree | 8644e7aa61007e15890ee12e5c13c3b28113f5d3 /prism | |
| parent | b1f992e02745fed15e57e802073741623273c706 (diff) | |
Fix example of array pattern that results in a SyntaxError
```
❯ ruby --parser=prism --dump=parsetree -e "foo in *1"
ruby: -e:1: syntax error found (SyntaxError)
> 1 | foo in *1
| ^ unexpected integer, expecting end-of-input
2 |
```
Diffstat (limited to 'prism')
| -rw-r--r-- | prism/config.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prism/config.yml b/prism/config.yml index db06c77256..de481bf2e8 100644 --- a/prism/config.yml +++ b/prism/config.yml @@ -1031,8 +1031,8 @@ nodes: foo in [1, 2] ^^^^^^^^^^^^^ - foo in *1 - ^^^^^^^^^ + foo in *bar + ^^^^^^^^^^^ foo in Bar[] ^^^^^^^^^^^^ |
