Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/parser/ParserSupport.java
Original file line number Diff line number Diff line change
@@ -1229,7 +1229,7 @@ private List<Integer> allocateNamedLocals(RegexpNode regexpNode) {
for (int i = 0; i < length; i++) {
// TODO: Pass by non-local-varnamed things but make sure consistent with list we get from regexp

if (RubyLexer.getKeyword(names[i]) == null) {
if (RubyLexer.getKeyword(names[i]) == null && !Character.isUpperCase(names[i].charAt(0))) {
int slot = scope.isDefined(names[i]);
if (slot >= 0) {
locals.add(slot);

0 comments on commit 04e0ee3

Please sign in to comment.