X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/edd3280b6922cb2ec256fd3bc889a701e0d2b6ba..6574576cfb6e5039e8a21714e8d9bf482ae7c32f:/tests/local.at?ds=sidebyside diff --git a/tests/local.at b/tests/local.at index d5ef8084..46bbfeda 100644 --- a/tests/local.at +++ b/tests/local.at @@ -37,7 +37,7 @@ m4_define([AT_SETUP_STRIP], [m4_bpatsubsts([$1], [%\(language\|skeleton\) "?\([^\" ]*\)"?], [\2], - [%define "?\([-A-Za-z0-9_.]+\)"? \("[^\"]+"\|[-A-Za-z0-9_.]+\)], + [%define "?\([-A-Za-z0-9_.]+\)"? \({[^\}]+}\|"[^\"]+"\|[-A-Za-z0-9_.]+\)], [\1=\2], [%define "?\([-A-Za-z0-9_.]+\)"?], [\1], @@ -182,9 +182,11 @@ m4_pushdef([AT_PURE_IF], [$2])]) # AT_NAME_PREFIX: also consider api.namespace. m4_pushdef([AT_NAME_PREFIX], -[m4_bmatch([$3], [\(%define api\.\(namespace\|prefix\)\|%name-prefix\) ".*"], - [m4_bregexp([$3], [\(%define api\.\(namespace\|prefix\)\|%name-prefix\) "\([^""]*\)"], [\3])], - [yy])]) +[m4_bmatch([$3], [\(%define api\.\(namespace\|prefix\)\|%name-prefix\) .*], + [m4_bregexp([$3], + [\(%define api\.\(namespace\|prefix\)\|%name-prefix\) [\{\"]\([^""]*\)[\"\}]], + [\3])], + [yy])]) m4_pushdef([AT_TOKEN_CTOR_IF], [m4_bmatch([$3], [%define api\.token\.constructor], [$1], [$2])]) m4_pushdef([AT_TOKEN_PREFIX],