mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibJS: "-->" preceded by token on same line isn't start of HTML-like comment
B.1.3 HTML-like Comments The syntax and semantics of 11.4 is extended as follows except that this extension is not allowed when parsing source code using the goal symbol Module: Syntax (only relevant part included) SingleLineHTMLCloseComment :: LineTerminatorSequence HTMLCloseComment HTMLCloseComment :: WhiteSpaceSequence[opt] SingleLineDelimitedCommentSequence[opt] --> SingleLineCommentChars[opt] Fixes #3810.
This commit is contained in:
parent
a10d09faba
commit
69845ae460
3 changed files with 27 additions and 12 deletions
|
@ -50,7 +50,7 @@ private:
|
|||
bool is_line_terminator() const;
|
||||
bool is_identifier_start() const;
|
||||
bool is_identifier_middle() const;
|
||||
bool is_line_comment_start() const;
|
||||
bool is_line_comment_start(bool line_has_token_yet) const;
|
||||
bool is_block_comment_start() const;
|
||||
bool is_block_comment_end() const;
|
||||
bool is_numeric_literal_start() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue