errors: support indented context info in m4 macros

* TODO: Address the issue, so remove it.
* data/bison.m4: Use b4_error with [[note]] rather than a complain_at
for context information.
* src/complain.c (complain_args): Take an additional argument, an
indentation pointer, to allow the dispatching of context information.
* src/complain.h (complain_args): Adjust prototype.
* src/scan-skel.l (at_directive_perform): Recognize the new @note mark.
* tests/input.at: Adjust.

Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
This commit is contained in:
Theophile Ranquet
2012-10-04 10:35:42 +00:00
committed by Akim Demaille
parent 0505df0cba
commit c6c8de1609
6 changed files with 28 additions and 22 deletions

4
TODO
View File

@@ -1,8 +1,4 @@
* Short term
** erroneous test
src/complains.c changed the output of errors (prefixes), but the m4 macros
have not been changed to reflect this change.
Fix the message "an identifier expected" (m4) in tests/input.at.
** push-parser
Check it too when checking the different kinds of parsers. And be