]> ocean-lang.org Git - ocean/commitdiff
parsergen: move EOL handling out of shift()
authorNeilBrown <neil@brown.name>
Sat, 13 Nov 2021 22:47:21 +0000 (09:47 +1100)
committerNeilBrown <neil@brown.name>
Sat, 13 Nov 2021 22:50:59 +0000 (09:50 +1100)
shift() is called in several places, and in only one of those is there a
need to make NEWLINE to EOL.

Move the code out of shift() and instead make a second call to shift()
if shifting NEWLINE failed.  I think this make the code clearer.

Signed-off-by: NeilBrown <neil@brown.name>

No differences found