-
-
Notifications
You must be signed in to change notification settings - Fork 666
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
Improve error for unexpected closing xml tag #12021
base: development
Are you sure you want to change the base?
Improve error for unexpected closing xml tag #12021
Conversation
Will have to check with @ncannasse about that, iirc he wanted inline xml to have very few limitations on terms of syntax |
Note: the reason the lexer continues past |
The point here is that this isn't really an xml-literal in the first place. It's not like you can close it with |
You can close it with |
I thought an empty tag was |
For example with: The tag name is the empty string between the first It's just a side effect of how empty tags are handled for not_xml, it doesn't really make sense. |
Something is definitely wrong here, there's even a comment in lexer.ml that says |
In general this is consistent with how xml literals behave.
This patch just disallows an empty tag name if it is immediately followed by |
Right, I had forgotten how silly all this is... |
#12015 (comment)