flex icon indicating copy to clipboard operation
flex copied to clipboard

If default rule matches '\n', yylineno isn't updated.

Open vonbrand opened this issue 7 years ago • 0 comments

`%option yylineno

/* Shut up gcc -O2 -Wall */ %option noinput nounput noyywrap

%% . /* Ignore */ %% int main() { yylex(); printf("%d lines\n", yylineno); }`

When run on it's own source, it reports "1 lines".

vonbrand avatar Oct 17 '18 12:10 vonbrand