X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f6857bbf8c40df05d7c7324cf41ced6d1961ca89..9ca7f077a0a5ecdd00c5945c7a7bd3cf46e23c13:/src/scan-code.l diff --git a/src/scan-code.l b/src/scan-code.l index b54f4c9a..630d45d5 100644 --- a/src/scan-code.l +++ b/src/scan-code.l @@ -4,9 +4,9 @@ This file is part of Bison, the GNU Compiler Compiler. - This program is free software; you can redistribute it and/or modify + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -15,10 +15,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - 02110-1301 USA -*/ + along with this program. If not, see . */ %option debug nodefault nounput noyywrap never-interactive %option prefix="code_" outfile="lex.yy.c" @@ -202,7 +199,10 @@ splice (\\[ \f\t\v]*\n)* obstack_sgrow (&obstack_for_string, "]b4_dollar_dollar["); self->is_value_used = true; } - "@$" obstack_sgrow (&obstack_for_string, "]b4_at_dollar["); + "@$" { + obstack_sgrow (&obstack_for_string, "]b4_at_dollar["); + locations_flag = true; + } }