lib/parser/ext/lexer.lex in fancy-0.7.0 vs lib/parser/ext/lexer.lex in fancy-0.8.0

- old
+ new

@@ -52,10 +52,11 @@ case "case" identifier @?@?({lower}|[_&*])({letter}|{digit}|{special_under})* selector ({letter}|[_&*])({letter}|{digit}|{special_under})*":" constant {capital}({letter}|{digit}|{special_under})* nested_constant ({constant}::)+{constant} +toplevel_constant ::({constant}|{nested_constant}) symbol_lit \'({identifier}|{operator}|{constant}|:|"[]"|"|"|".")+ ruby_send_open ({constant}|{identifier}){lparen} ruby_oper_open {operator}{lparen} regexp_lit "/".*"/" comma , @@ -161,9 +162,13 @@ {constant} { yylval.object = rb_str_new2(yytext); return CONSTANT; } {nested_constant} { + yylval.object = rb_str_new2(yytext); + return CONSTANT; + } +{toplevel_constant} { yylval.object = rb_str_new2(yytext); return CONSTANT; } {symbol_lit} { yylval.object = rb_str_new2(yytext);