plan9fox/sys/src/cmd/hoc
Ori Bernstein 450ec696ee 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)
2019-12-06 11:53:44 -08:00
..
code.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
hoc.h Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
hoc.y hoc: don't nest calls to follow() when lexing ++/+= and --/-= (#287) 2019-12-06 11:53:44 -08:00
init.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
math.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
mkfile Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
symbol.c Import sources from 2011-03-30 iso image - lib 2011-03-30 19:35:09 +03:00
tests.hoc cleanup 2011-05-04 13:39:12 +00:00