mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibJS: Implement automatic semicolon insertion
This commit is contained in:
parent
b77ceecb02
commit
07f838dc4e
Notes:
sideshowbarker
2024-07-19 07:32:07 +09:00
Author: https://github.com/sunverwerth
Commit: 07f838dc4e
Pull-request: https://github.com/SerenityOS/serenity/pull/1826
2 changed files with 67 additions and 24 deletions
|
@ -89,6 +89,7 @@ private:
|
|||
void expected(const char* what);
|
||||
Token consume();
|
||||
Token consume(TokenType type);
|
||||
void consume_or_insert_semicolon();
|
||||
void save_state();
|
||||
void load_state();
|
||||
|
||||
|
@ -104,6 +105,5 @@ private:
|
|||
|
||||
ParserState m_parser_state;
|
||||
Optional<ParserState> m_saved_state;
|
||||
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue