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
The HTMLLexer.g4 contains the rule: HTML_COMMENT: '<!--' .*? '-->';
But that seems to be wrong, because on whatwg.org we find:
13.1.6 Comments
Comments must have the following format:
• The string "<!--".
• Optionally, text, with the additional restriction that the text
must not start with the string ">", nor start with the string "->",
nor contain the strings "<!--", "-->", or "--!>",
nor end with the string "<!-".
• The string "-->”.
So, the comment text is not just .*? , right? Thanks.
The text was updated successfully, but these errors were encountered:
HubertKauker
changed the title
HTMLLexer not
HTMLLexer: wrong rule for html comments
Dec 6, 2024
Hi all.
The HTMLLexer.g4 contains the rule:
HTML_COMMENT: '<!--' .*? '-->';
But that seems to be wrong, because on whatwg.org we find:
So, the comment text is not just
.*?
, right? Thanks.The text was updated successfully, but these errors were encountered: