summaryrefslogtreecommitdiff
path: root/openbox/parse.l
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/parse.l')
-rw-r--r--openbox/parse.l6
1 files changed, 3 insertions, 3 deletions
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 <stdlib.h>
#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; }