mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Reuse nonlocal_var
patterns
This commit is contained in:
parent
d91865f33f
commit
13d31331c8
Notes:
git
2022-08-22 18:53:08 +09:00
Merged: https://github.com/ruby/ruby/pull/6263 Merged-By: nobu <nobu@ruby-lang.org>
1 changed files with 2 additions and 6 deletions
8
parse.y
8
parse.y
|
@ -5035,9 +5035,7 @@ ssym : tSYMBEG sym
|
||||||
;
|
;
|
||||||
|
|
||||||
sym : fname
|
sym : fname
|
||||||
| tIVAR
|
| nonlocal_var
|
||||||
| tGVAR
|
|
||||||
| tCVAR
|
|
||||||
;
|
;
|
||||||
|
|
||||||
dsym : tSYMBEG string_contents tSTRING_END
|
dsym : tSYMBEG string_contents tSTRING_END
|
||||||
|
@ -5073,10 +5071,8 @@ nonlocal_var : tIVAR
|
||||||
;
|
;
|
||||||
|
|
||||||
user_variable : tIDENTIFIER
|
user_variable : tIDENTIFIER
|
||||||
| tIVAR
|
|
||||||
| tGVAR
|
|
||||||
| tCONSTANT
|
| tCONSTANT
|
||||||
| tCVAR
|
| nonlocal_var
|
||||||
;
|
;
|
||||||
|
|
||||||
keyword_variable: keyword_nil {$$ = KWD2EID(nil, $1);}
|
keyword_variable: keyword_nil {$$ = KWD2EID(nil, $1);}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue