X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/aa08666d72d132462e8d53d2d23c95a3bcfa403d..e4f0316ae096a728e62032fa33bc6c42cf4b6455:/tests/local.at diff --git a/tests/local.at b/tests/local.at index 3f6de195..55ba8249 100644 --- a/tests/local.at +++ b/tests/local.at @@ -64,7 +64,9 @@ m4_pushdef([AT_PURE_AND_LOC_IF], m4_pushdef([AT_GLR_OR_PARAM_IF], [m4_bmatch([$3], [%glr-parser\|%parse-param], [$1], [$2])]) m4_pushdef([AT_NAME_PREFIX], -[m4_bregexp([$3], [name-prefix="\([^"]*\)"], [\1])]) +[m4_bmatch([$3], [%name-prefix=".*"], + [m4_bregexp([$3], [name-prefix="\([^"]*\)"], [\1])], + [yy])]) # yyerror receives the location if %location & %pure & (%glr or %parse-param). m4_pushdef([AT_YYERROR_ARG_LOC_IF], [AT_GLR_OR_PARAM_IF([AT_PURE_AND_LOC_IF([$1], [$2])],