Simplistic C comment re is wrong, use more correct one
This commit is contained in:
parent
f30595058e
commit
fc3a3ee720
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=117945
@ -56,7 +56,7 @@ update_lineno(const char *cp)
|
|||||||
; { return SEMICOLON; }
|
; { return SEMICOLON; }
|
||||||
#.*$ ;
|
#.*$ ;
|
||||||
\/\/.*$ ;
|
\/\/.*$ ;
|
||||||
\/\*(.|\n)*\*\/ { update_lineno(yytext); }
|
\/\*([^*]|(\*+([^*\/])))*\*+\/ { update_lineno(yytext); }
|
||||||
\{ { return BEGINBLOCK; }
|
\{ { return BEGINBLOCK; }
|
||||||
\} { return ENDBLOCK; }
|
\} { return ENDBLOCK; }
|
||||||
[0-9]+ { yylval.i = atoi(yytext); return NUMBER; }
|
[0-9]+ { yylval.i = atoi(yytext); return NUMBER; }
|
||||||
|
Loading…
Reference in New Issue
Block a user