You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a practical use-case for nested comments to justify the implied lexer complexity by supporting it? Otherwise, I would just not support it and add a lexer error upon encountering a /* while already lexing a multiline comment.
But a few months ago, we were discussing that we might remove multiline comments anyways and instead add better support for singleline ones (see effekt-lang/effekt-vscode#19).
In fact, I was thinking about simplifying the language to remove all multiline tokens (we can hack around multiline strings, Zig-style), since that would make the lexer simpler and it would be super simple to do incremental compilation (since only the changed lines need to be re-lexed, re-parsed, ...).
jiribenes
changed the title
Nested comments are not lexed correctly
Multi-line comments cannot be nested
Aug 31, 2024
returns:
which implies that multi-line comments cannot be nested.
The text was updated successfully, but these errors were encountered: