1
0
Fork 0
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:
S.H 2022-08-22 18:52:36 +09:00 committed by GitHub
parent d91865f33f
commit 13d31331c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>

View file

@ -5035,9 +5035,7 @@ ssym : tSYMBEG sym
;
sym : fname
| tIVAR
| tGVAR
| tCVAR
| nonlocal_var
;
dsym : tSYMBEG string_contents tSTRING_END
@ -5073,10 +5071,8 @@ nonlocal_var : tIVAR
;
user_variable : tIDENTIFIER
| tIVAR
| tGVAR
| tCONSTANT
| tCVAR
| nonlocal_var
;
keyword_variable: keyword_nil {$$ = KWD2EID(nil, $1);}