Lexer cleanup
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 9 Apr 2013 01:49:07 +0000 (21:49 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 9 Apr 2013 01:49:07 +0000 (21:49 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/metadata/ctf-lexer.l

index 92caf3fd5cb059b05e9f130671ae87494b766551..6b605a0fe583dab98eb6c59feaad0e8b259d7245 100644 (file)
@@ -80,8 +80,7 @@ IDENTIFIER                    {ID_NONDIGIT}({ID_NONDIGIT}|{DIGIT})*
 <comment_ml>\n
 <comment_ml>"*"+"/"            BEGIN(INITIAL);
 
-"//"                           BEGIN(comment_sl);
-<comment_sl>[^\n]*\n           BEGIN(INITIAL);
+"//"[^\n]*\n                   /* skip comment */
 
 L?\"(\\.|[^\\"])*\"            { if (import_string(yyextra, yylval, yytext, '\"') < 0) return ERROR; else return STRING_LITERAL; }
 L?\'(\\.|[^\\'])*\'            { if (import_string(yyextra, yylval, yytext, '\'') < 0) return ERROR; else return CHARACTER_LITERAL; }
This page took 0.024093 seconds and 4 git commands to generate.