mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 02:33:03 +00:00
Merge remote-tracking branch 'origin/maint'
* origin/maint: (29 commits) regen synclines: remove spurious empty line also support $<foo>$ in the %initial-action skeletons: b4_dollar_pushdef and popdef to simpify complex definitions regen printer/destructor: translate only once factor the handling of m4 escaping news: schedule the removal of the ";" hack style changes in the scanners regen support $<tag>$ in printers and destructors scan-code: factor the handling of the type in $<TYPE>$ muscles: fix another occurrence of unescaped type name glr.cc: fix the handling of yydebug gnulib: update formatting changes tests: fix an assertion tests: adjust to GCC 4.8, which displays caret errors be sure to properly escape type names obstack_quote: escape and quote for M4 muscles: shuffle responsabilities muscles: make private functions static muscles: rename private functions/macros obstack_escape: escape M4 characters remove dead macro maint: style changes doc: avoid problems with case insensitive file systems configure: fix botched quoting news: fix typo. Conflicts: NEWS data/c.m4 data/glr.cc data/lalr1.cc examples/rpcalc/local.mk src/muscle-tab.h src/output.c src/parse-gram.c src/parse-gram.h src/parse-gram.y src/scan-code.l src/symlist.c src/symlist.h src/symtab.h tests/calc.at
This commit is contained in:
@@ -72,8 +72,8 @@ static void fail_for_invalid_at (char const *at);
|
||||
"@@" fputc ('@', yyout);
|
||||
"@{" fputc ('[', yyout);
|
||||
"@}" fputc (']', yyout);
|
||||
"@`" /* Empty. Used by b4_cat in ../data/bison.m4. */
|
||||
@\n /* Likewise. */
|
||||
"@`" continue; /* Used by b4_cat in ../data/bison.m4. */
|
||||
@\n continue;
|
||||
|
||||
"@oline@" fprintf (yyout, "%d", out_lineno + 1);
|
||||
"@ofile@" QPUTS (outname);
|
||||
@@ -91,7 +91,7 @@ static void fail_for_invalid_at (char const *at);
|
||||
\n out_lineno++; ECHO;
|
||||
[^@\n]+ ECHO;
|
||||
|
||||
<INITIAL><<EOF>> {
|
||||
<<EOF>> {
|
||||
if (outname)
|
||||
{
|
||||
free (outname);
|
||||
@@ -100,15 +100,15 @@ static void fail_for_invalid_at (char const *at);
|
||||
return EOF;
|
||||
}
|
||||
|
||||
<SC_AT_DIRECTIVE_ARGS>{
|
||||
[^@]+ { STRING_GROW; }
|
||||
<SC_AT_DIRECTIVE_ARGS>
|
||||
{
|
||||
[^@]+ STRING_GROW;
|
||||
|
||||
"@@" { obstack_1grow (&obstack_for_string, '@'); }
|
||||
"@{" { obstack_1grow (&obstack_for_string, '['); }
|
||||
"@}" { obstack_1grow (&obstack_for_string, ']'); }
|
||||
"@`" /* Empty. Useful for starting an argument
|
||||
that begins with whitespace. */
|
||||
@\n /* Empty. */
|
||||
"@@" obstack_1grow (&obstack_for_string, '@');
|
||||
"@{" obstack_1grow (&obstack_for_string, '[');
|
||||
"@}" obstack_1grow (&obstack_for_string, ']');
|
||||
"@`" continue; /* For starting an argument that begins with whitespace. */
|
||||
@\n continue;
|
||||
|
||||
@[,)] {
|
||||
if (at_directive_argc >= AT_DIRECTIVE_ARGC_MAX)
|
||||
@@ -131,15 +131,17 @@ static void fail_for_invalid_at (char const *at);
|
||||
}
|
||||
}
|
||||
|
||||
@.? { fail_for_invalid_at (yytext); }
|
||||
@.? fail_for_invalid_at (yytext);
|
||||
}
|
||||
|
||||
<SC_AT_DIRECTIVE_SKIP_WS>{
|
||||
[ \t\r\n]
|
||||
<SC_AT_DIRECTIVE_SKIP_WS>
|
||||
{
|
||||
[ \t\r\n] continue;
|
||||
. { yyless (0); BEGIN SC_AT_DIRECTIVE_ARGS; }
|
||||
}
|
||||
|
||||
<SC_AT_DIRECTIVE_ARGS,SC_AT_DIRECTIVE_SKIP_WS>{
|
||||
<SC_AT_DIRECTIVE_ARGS,SC_AT_DIRECTIVE_SKIP_WS>
|
||||
{
|
||||
<<EOF>> {
|
||||
complain (fatal, _("unclosed %s directive in skeleton"),
|
||||
at_directive_argv[0]);
|
||||
|
||||
Reference in New Issue
Block a user