glsl2: Initialize yylineno and yycolumn so line numbers are sane.
This commit is contained in:
committed by
Ian Romanick
parent
e78e0fa42b
commit
388ab9fa6b
@@ -36,6 +36,7 @@
|
||||
yylloc->first_line = yylineno; \
|
||||
yycolumn += yyleng; \
|
||||
} while(0);
|
||||
#define YY_USER_INIT yylineno = 0; yycolumn = 0;
|
||||
%}
|
||||
|
||||
%option bison-bridge bison-locations reentrant noyywrap
|
||||
|
||||
Reference in New Issue
Block a user