mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
errors: indent "%define var" redefinition context
This is the continuation of the work on the readability of errors context. For example, what used to be: input.y:2.9-11: %define variable 'var' redefined input.y:1.9-11: previous definition is now: input.y:2.9-11: %define variable 'var' redefined input.y:1.9-11: previous definition * src/muscle-tab.c (muscle_percent_define_insert): Use complain_at_indent to output with increased indentation level. * tests/input.at: Apply this change. Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
This commit is contained in:
committed by
Akim Demaille
parent
cbaea0106d
commit
6b1e1872d4
@@ -928,9 +928,9 @@ start: ;
|
||||
|
||||
AT_BISON_CHECK([[input-redefined.y]], [[1]], [],
|
||||
[[input-redefined.y:2.9-11: %define variable 'var' redefined
|
||||
input-redefined.y:1.9-11: previous definition
|
||||
input-redefined.y:1.9-11: previous definition
|
||||
input-redefined.y:3.10-12: %define variable 'var' redefined
|
||||
input-redefined.y:2.9-11: previous definition
|
||||
input-redefined.y:2.9-11: previous definition
|
||||
]])
|
||||
|
||||
AT_DATA([input-unused.y],
|
||||
@@ -985,7 +985,7 @@ start: ;
|
||||
]])
|
||||
AT_BISON_CHECK([[-Dvar=cmd-d input-dg.y]], [[1]], [],
|
||||
[[input-dg.y:1.9-11: %define variable 'var' redefined
|
||||
<command line>:2: previous definition
|
||||
<command line>:2: previous definition
|
||||
]])
|
||||
|
||||
AT_DATA([[input-unused.y]],
|
||||
|
||||
Reference in New Issue
Block a user