X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/8efe435c059af57671105fd8671ba97bb8474264..c02634922181a18cd6f2d430901a7747ea17b12b:/src/scan-gram.l diff --git a/src/scan-gram.l b/src/scan-gram.l index 7e9c3673..cd8ca516 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -154,7 +154,7 @@ blanks [ \t\f]+ {eols} YY_LINES; YY_STEP; {blanks} YY_STEP; {id} { - yylval->symbol = getsym (yytext); + yylval->symbol = getsym (yytext, *yylloc); return ID; } @@ -286,7 +286,7 @@ blanks [ \t\f]+ assert (yy_top_state () == INITIAL); { YY_OBS_FINISH; - yylval->symbol = getsym (last_string); + yylval->symbol = getsym (last_string, *yylloc); symbol_class_set (yylval->symbol, token_sym); symbol_user_token_number_set (yylval->symbol, last_string[1]); YY_OBS_FREE;