Skip to content

Reject invalid $0-prefixed global variable names like $01, $0abc#9445

Merged
enebo merged 1 commit into
jruby:masterfrom
sampokuokkanen:fix-test_symbol
May 18, 2026
Merged

Reject invalid $0-prefixed global variable names like $01, $0abc#9445
enebo merged 1 commit into
jruby:masterfrom
sampokuokkanen:fix-test_symbol

Conversation

@sampokuokkanen

Copy link
Copy Markdown
Contributor

Match MRI by rejecting $0-prefixed identifiers like $01 or $0abc at the lexer with '<name>' is not allowed as a global variable name.

This way we can enable both test_ungettable_gvar and test_symbol. test_symbol has 10 assertions and only the last one was failing before this.

Match MRI by rejecting `$0`-prefixed identifiers like `$01` or `$0abc` at the lexer with `'<name>' is not allowed as a global variable name`.
@enebo enebo added this to the JRuby 10.1.1.0 milestone May 18, 2026
@enebo
enebo merged commit 54f22cc into jruby:master May 18, 2026
111 of 114 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants