Closed lacraig2 closed 1 year ago
I'm a bit hesitant to merge it then. Could a fix alter the new logic significantly?
That depends on how it's implemented. This is such a narrow case that I could see it being handled at preprocessing (i.e. before handing to the lexer).
Got it, that makes sense. I'm a bit cautious to steer from bash but if we think the direction we've taken with these changes is the right one then I'm good to merge.
Working off of the base for PR #71 so this will be relevant after that PR is merged.
Multiple new lines at the end of an input triggers an "Unexpected EOF" error in line 546, in p_error.
Minimal example:
This is not the case for a single newline at the end of the file (as of PR #71).