1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 09:34:59 +00:00
serenity/Libraries/LibJS
Linus Groh 95b51e857d LibJS: Add TokenType::TemplateLiteral
This is required for template literals - we're not quite there yet, but at
least the parser can now tell us when this token is encountered -
currently this yields "Unexpected token Invalid". Not really helpful.

The character is a "backtick", but as we already have
TokenType::{StringLiteral,RegexLiteral} this seemed like a fitting name.

This also enables syntax highlighting for template literals in the js
REPL and LibGUI's JSSyntaxHighlighter.
2020-04-24 11:18:57 +02:00
..
Heap LibJS: Add MarkedValueList and use it for argument passing 2020-04-19 17:34:33 +02:00
Runtime LibJS: Fix left shift operator 2020-04-23 23:48:27 +02:00
Tests LibJS: Implement computed properties in object expressions 2020-04-23 23:56:04 +02:00
AST.cpp LibJS: Fix ObjectExpression::execute() 2020-04-24 00:02:07 +02:00
AST.h LibJS: Implement computed properties in object expressions 2020-04-23 23:56:04 +02:00
Forward.h LibJS: Add Uint8ClampedArray :^) 2020-04-21 23:47:39 +02:00
Interpreter.cpp LibJS: Rename global_call_fram to global_call_frame 2020-04-21 09:43:56 +02:00
Interpreter.h LibJS: Add MarkedValueList and use it for argument passing 2020-04-19 17:34:33 +02:00
Lexer.cpp LibJS: Add TokenType::TemplateLiteral 2020-04-24 11:18:57 +02:00
Lexer.h LibJS: Handle HTML-style comments 2020-04-14 12:54:09 +02:00
Makefile LibJS: Add Uint8ClampedArray :^) 2020-04-21 23:47:39 +02:00
Parser.cpp LibJS: Add TokenType::TemplateLiteral 2020-04-24 11:18:57 +02:00
Parser.h LibJS: Parse while statements 2020-04-22 11:48:14 +02:00
Token.cpp LibJS: Add TokenType::TemplateLiteral 2020-04-24 11:18:57 +02:00
Token.h LibJS: Add TokenType::TemplateLiteral 2020-04-24 11:18:57 +02:00