Skip to content
Permalink
Browse files
'doo'::Mod from last tlabel with string fix
  • Loading branch information
enebo committed Jan 18, 2015
1 parent 2841d67 commit 746583b9a5283560b010c2c10181c28f8b7d57c6
Showing 1 changed file with 7 additions and 2 deletions.
@@ -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.