mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
bistromathic: don't display undefined locations
Currently, completion when there is a syntax error shows broken locations. * examples/c/bistromathic/parse.y (expected_tokens): Initialize the location. * examples/c/bistromathic/bistromathic.test: Check that.
This commit is contained in:
@@ -306,3 +306,17 @@ end of file exit exp ''
|
||||
0
|
||||
> ''
|
||||
err: '
|
||||
|
||||
# Check that completion when there is an error prints valid locations.
|
||||
sed -e 's/\\t/ /g' >input <<EOF
|
||||
(1++2) + 3 +\t\t
|
||||
EOF
|
||||
run -n 0 '> (1++2) + 3 +
|
||||
( - atan cos exp ln number sin sqrt
|
||||
> (1++2) + 3 +
|
||||
>
|
||||
err: 1.1: syntax error: expected - or ( or number or function or variable before +
|
||||
err: 1.1: syntax error: expected - or ( or number or function or variable before +
|
||||
err: 1.4: syntax error: expected - or ( or number or function or variable before +
|
||||
err: 1.13: syntax error: expected - or ( or number or function or variable before end of file
|
||||
'
|
||||
|
||||
Reference in New Issue
Block a user