mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
LibJS: Add support for arrow functions
This commit is contained in:
parent
f90da71d28
commit
098f1cd0ca
5 changed files with 144 additions and 1 deletions
|
@ -86,6 +86,7 @@ Lexer::Lexer(StringView source)
|
|||
}
|
||||
|
||||
if (s_two_char_tokens.is_empty()) {
|
||||
s_two_char_tokens.set("=>", TokenType::Arrow);
|
||||
s_two_char_tokens.set("+=", TokenType::PlusEquals);
|
||||
s_two_char_tokens.set("-=", TokenType::MinusEquals);
|
||||
s_two_char_tokens.set("*=", TokenType::AsteriskEquals);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue