assertLex(0, lexer);
}
public void testCommentsWithQuotesInAssignment() throws Exception {
String in = "a x = y /* don't do stuff*/;";
Lexer lexer = new JFlexLexer(new StringReader(in));
assertLex(Parser.IDENTIFIER, "a", lexer);
assertLex(Parser.IDENTIFIER, "x", lexer);
assertLex(Parser.SEMI, lexer);
assertLex(0, lexer);
in = "a z = \n"
+ "// thing's thing \n"
+ "0;";
lexer = new JFlexLexer(new StringReader(in));
assertLex(Parser.IDENTIFIER, "a", lexer);
assertLex(Parser.IDENTIFIER, "z", lexer);
assertLex(Parser.SEMI, lexer);
assertLex(0, lexer);
}