diff options
Diffstat (limited to 'usr.bin/mkcsmapper/lex.l')
-rw-r--r-- | usr.bin/mkcsmapper/lex.l | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mkcsmapper/lex.l b/usr.bin/mkcsmapper/lex.l index d8ab1b6..4ba7fc4 100644 --- a/usr.bin/mkcsmapper/lex.l +++ b/usr.bin/mkcsmapper/lex.l @@ -41,7 +41,7 @@ #include "ldef.h" #include "yacc.h" -int line_number = 1; +int linenumber = 1; %} %option noinput %option nounput @@ -51,11 +51,11 @@ int line_number = 1; %% [ \t]+ { } -#.*[\n]|"//".*[\n]|[\n] { line_number++; return (R_LN); } +#.*[\n]|"//".*[\n]|[\n] { linenumber++; return (R_LN); } "/*" { BEGIN COMMENT; } <COMMENT>"*/" { BEGIN 0; } -<COMMENT>[\n] { line_number++; } +<COMMENT>[\n] { linenumber++; } <COMMENT>. { } <COMMENT><<EOF>> { yyerror("unexpected file end (unterminated comment)\n"); |