Make string parsing count newlines
Updated 1 year, 8 months ago
| Truls Becken | Reviewers | ||
| EtoileCore | |||
| None | Etoile trunk (etoile/trunk/Etoile) | ||
Cloning the comment parsing code for parsing strings. This very minor change is done for two reasons: 1) Line breaks were accepted inside strings, but the line counter was not incremented. 2) The only differences between comments and strings are the quotation character and emitted token, so the code should be similar. It's also very similar to the whitespace eating loop above, and I do feel it's easier to follow the i's and j's with this code. Granted, it does use an extra CHAR(), but I'm prepared to live with that. Same deal with the symbol code.