X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fparse.l;h=64896e07249d6806cb7f2d6678a5b3a417991b3e;hb=d6ef215583e6293477f674bde75d9a22d0c91d26;hp=4dcdc2ca8c440d432b0e9560d10b1c208b322b71;hpb=cbbf90a718ecc6836ef7a77b9040aebb9da348b8;p=chaz%2Fopenbox diff --git a/openbox/parse.l b/openbox/parse.l index 4dcdc2ca..64896e07 100644 --- a/openbox/parse.l +++ b/openbox/parse.l @@ -4,7 +4,7 @@ # include #endif -int yylineno = 1; +extern int lineno; %} real [-0-9][0-9]*\.[0-9]+ @@ -15,9 +15,9 @@ bool ([tT][rR][uU][eE]|[fF][aA][lL][sS][eE]|[yY][eE][sS]|[nN][oO]|[oO][nN]|[oO][ %% -^[ \t]*#.*\n /* comment */ { ++yylineno; } +^[ \t]*#.*\n /* comment */ { ++lineno; } ^[ \t]*#.* /* comment */ -^[ \t]*\n /* empty lines */ { ++yylineno; } +^[ \t]*\n /* empty lines */ { ++lineno; } [ \t] /* whitespace */ {real} { yylval.real = atof(yytext); return REAL; } {integer} { yylval.integer = atoi(yytext); return INTEGER; }