diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2012-11-23 11:21:47 +0100 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2012-11-23 11:36:42 +0100 |
commit | 68ac70bc7bf365fa17bd6d7ea597fa0a05488b8d (patch) | |
tree | cffac5ea591c01063f2536aa405041a566f07ff7 /tests/named-refs.at | |
parent | ac7f308c8e565d95c96cb561b559281f8ba5dc95 (diff) | |
download | bison-68ac70bc7bf365fa17bd6d7ea597fa0a05488b8d.tar.gz |
scanner: issue a single error for groups of invalid characters
* src/scan-gram.l: Scan groups of invalid characters together.
* tests/input.at, tests/named-refs.at: Adjust.
Diffstat (limited to 'tests/named-refs.at')
-rw-r--r-- | tests/named-refs.at | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/named-refs.at b/tests/named-refs.at index c8809c12..de48e0f7 100644 --- a/tests/named-refs.at +++ b/tests/named-refs.at @@ -443,19 +443,14 @@ AT_SETUP([Stray symbols in brackets]) AT_DATA_GRAMMAR([test.y], [[ %% -start: foo[ /* aaa */ *&-.+\000\001\002\377 ] bar +start: foo[ % /* aaa */ *&-.+\000\001\002\377 ] bar { s = $foo; } ]]) AT_CHECK([[$PERL -pi -e 's/\\(\d{3})/chr(oct($1))/ge' test.y || exit 77]]) AT_BISON_CHECK([-o test.c test.y], 1, [], -[[test.y:11.23: error: invalid character in bracketed name: '*' -test.y:11.24: error: invalid character in bracketed name: '&' -test.y:11.25: error: invalid character in bracketed name: '-' -test.y:11.27: error: invalid character in bracketed name: '+' -test.y:11.28: error: invalid character in bracketed name: '\0' -test.y:11.28: error: invalid character in bracketed name: '\001' -test.y:11.28: error: invalid character in bracketed name: '\002' -test.y:11.28: error: invalid character in bracketed name: '\377' +[[test.y:11.13: error: invalid character in bracketed name: '%' +test.y:11.25-27: error: invalid characters in bracketed name: '*&-' +test.y:11.29-30: error: invalid characters in bracketed name: '+\0\001\002\377' ]]) AT_CLEANUP |