summaryrefslogtreecommitdiff
path: root/sys/src/cmd/acme/exec.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-12-06 11:53:44 -0800
committerOri Bernstein <ori@eigenstate.org>2019-12-06 11:53:44 -0800
commit450ec696ee46f79159395a89c9a97bc8354616ba (patch)
tree04ff35fcb03808d30b8ff88757627c888b923096 /sys/src/cmd/acme/exec.c
parentc3779afdd6452b40c27359a88af548e93635b595 (diff)
hoc: don't nest calls to follow() when lexing ++/+= and --/-= (#287)
The code had a nested use of the follow() function that could cause +=+ and -=- to register as ++ and --. The first follow() to execute could consume a character and match and then the second follow() could consume another character and match. For example i-=-10 would result in a syntax error and i-=- would decrement i. (imported from plan9port commit f1dd3f065a97f57bf59db2e3284868e181734159)
Diffstat (limited to 'sys/src/cmd/acme/exec.c')
0 files changed, 0 insertions, 0 deletions