Minor style cleanups.

This commit is contained in:
Stefano Sanfilippo 2014-11-28 19:07:34 +01:00
parent 917f511479
commit 72b6c0253a

View File

@ -22,6 +22,7 @@ CHAR [a-zA-Z_]
%x shift %x shift
%% %%
"#"[^\n]* { "#"[^\n]* {
meta(yytext + 1); meta(yytext + 1);
} }
@ -157,7 +158,8 @@ CHAR [a-zA-Z_]
return token::CASE_END; return token::CASE_END;
} }
<INITIAL,shift>[ \t\f\v\n\r] {} <INITIAL,shift>[ \t\f\v\n\r] {
}
{CHAR}({DIGIT}|{CHAR})* { {CHAR}({DIGIT}|{CHAR})* {
lval->strval = new std::string(yytext); lval->strval = new std::string(yytext);