-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange restriction on newlines in macro definitions #560
Comments
Sorry, for some reason I only saw this one now. The reason for this restriction is that an identifier can be the start of the next macro definition, but non-identifiers can't be. You'd have to look ahead several tokens to figure out what it is ( With the more flexible lookahead expressions JFlex has now (this was all written long before that), it might be possible to do that these days, but it would at least require a deeper investigation. |
I'll keep this open until I've figure out how hard it would be to lift the restriction, i.e. whether it can be done with reasonable effort. |
A newline is only allowed after the equals sign in a macro definition if the next token is not an identifier. I find this unintuitive.
The text was updated successfully, but these errors were encountered: