diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-10-19 09:10:54 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-10-19 09:10:54 -0400 |
commit | 668892ebbcdcfa92a57a62e737f567a23d707aa0 (patch) | |
tree | e6fd6dc046ec69988385b98cd6f8328b0a14ccfe /syntax-highlight/c.scm | |
parent | f9dae95bd0f1434aa56fd8de259325b9742e28e2 (diff) |
parsers: Fix variable shadowing issue.
'parse-either' and 'parse-both' shadowed the 'stream' variable, causing
failure cases to sometimes return the wrong stream. That is, a stream
that has consumed input characters, not the original stream.
* syntax-highlight/parsers.scm (parse-either, parse-both): Use
'remainder' variable for leftover stream variables rather than
shadowing 'stream'.
Diffstat (limited to 'syntax-highlight/c.scm')
0 files changed, 0 insertions, 0 deletions