1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-25 00:42:11 +00:00
serenity/Userland/Libraries/LibCpp
Ali Mohammad Pur 71b4433b0d LibWeb+LibSyntax: Implement nested syntax highlighters
And use them to highlight javascript in HTML source.
This commit also changes how TextDocumentSpan::data is interpreted,
as it used to be an opaque pointer, but everyone stuffed an enum value
inside it, which made the values not unique to each highlighter;
that field is now a u64 serial id.
The syntax highlighters don't need to change their ways of stuffing
token types into that field, but a highlighter that calls another
nested highlighter needs to register the nested types for use with
token pairs.
2021-06-07 14:45:49 +04:30
..
Tests LibCpp: Revert change to strace.cpp AST test from bf8fd4c 2021-06-04 00:03:25 +02:00
AST.cpp LibCpp: Consider declarations inside a function's body 2021-06-01 22:20:13 +02:00
AST.h LibCpp: Fix "NumricLiteral" => "NumericLiteral" typo 2021-05-19 23:19:07 +02:00
CMakeLists.txt LibCpp: Move Cpp::Token to a separate file 2021-03-13 10:17:02 +01:00
Lexer.cpp LibCpp: Do not emit empty whitespace token after include statement 2021-06-05 00:32:28 +04:30
Lexer.h LibCpp: Use east const style in Lexer and SyntaxHighlighter 2021-06-05 00:32:28 +04:30
Parser.cpp LibCpp: Modify Token::to_string() to include more information 2021-05-22 15:52:11 +02:00
Parser.h LibCpp: Rename m_definitions=>m_preprocessor_definitions 2021-05-09 20:58:27 +02:00
Preprocessor.cpp LibCpp: Add option in Preprocessor to keep #include's in processed text 2021-05-22 15:52:11 +02:00
Preprocessor.h LibCpp: Add option in Preprocessor to keep #include's in processed text 2021-05-22 15:52:11 +02:00
SyntaxHighlighter.cpp LibWeb+LibSyntax: Implement nested syntax highlighters 2021-06-07 14:45:49 +04:30
SyntaxHighlighter.h LibWeb+LibSyntax: Implement nested syntax highlighters 2021-06-07 14:45:49 +04:30
Token.cpp LibCpp: Modify Token::to_string() to include more information 2021-05-22 15:52:11 +02:00
Token.h LibCpp: Modify Token::to_string() to include more information 2021-05-22 15:52:11 +02:00