Skip to content

Commit

Permalink
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/src/main/java/org/jruby/lexer/yacc/RubyLexer.java
Original file line number Diff line number Diff line change
@@ -1113,8 +1113,13 @@ private int yylex() throws IOException {
if (tok == Tokens.tSTRING_END && (yaccValue.equals("\"") || yaccValue.equals("'"))) {
if (((lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_ENDFN) && !conditionState.isInState() ||
isARG()) && src.peek(':')) {
src.read();
tok = Tokens.tLABEL_END;
int c1 = src.read();
if (src.peek(':')) { // "mod"::SOMETHING (hack MRI does not do this)
src.unread(c1);
} else {
src.read();
tok = Tokens.tLABEL_END;
}
}
}

0 comments on commit 746583b

Please sign in to comment.