mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
bistromathic: don't require spaces after operators for completion
Currently "(1+<TAB>" does not work as expected, because "+" is not a word breaking character. * examples/c/bistromathic/parse.y (init_readline): Specify our word breaking characters. * examples/c/bistromathic/bistromathic.test: Avoid trailing spaces.
This commit is contained in:
@@ -86,11 +86,11 @@ run 0 '> 1 / 0
|
||||
## ------------ ##
|
||||
|
||||
sed -e 's/\\t/ /g' >input <<EOF
|
||||
( 1 + \t\t
|
||||
(1+\t\t
|
||||
EOF
|
||||
run 0 '> ( 1 +
|
||||
run 0 '> (1+
|
||||
( cos ln
|
||||
- double precision number sin
|
||||
atan exp sqrt
|
||||
> ( 1 +
|
||||
> err: 1.7: syntax error: expected - or ( or double precision number or function or variable before end of file'
|
||||
> (1+
|
||||
> err: 1.4: syntax error: expected - or ( or double precision number or function or variable before end of file'
|
||||
|
||||
Reference in New Issue
Block a user