X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fmetadata%2Fctf-lexer.l;h=6b605a0fe583dab98eb6c59feaad0e8b259d7245;hb=765f2d8c1c070828aea8ffb242021546fbb922ab;hp=92caf3fd5cb059b05e9f130671ae87494b766551;hpb=f3e750bcf83c14c895dc4c9156970d10a49c64a2;p=babeltrace.git diff --git a/formats/ctf/metadata/ctf-lexer.l b/formats/ctf/metadata/ctf-lexer.l index 92caf3fd..6b605a0f 100644 --- a/formats/ctf/metadata/ctf-lexer.l +++ b/formats/ctf/metadata/ctf-lexer.l @@ -80,8 +80,7 @@ IDENTIFIER {ID_NONDIGIT}({ID_NONDIGIT}|{DIGIT})* \n "*"+"/" BEGIN(INITIAL); -"//" BEGIN(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; }