mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 18:00:31 +00:00
Delete Lexer.cpp/h and Token.cpp, replacing all tokenization with a new rust_tokenize() FFI function that calls back for each token. Rewrite SyntaxHighlighter.cpp and js.cpp REPL to use the Rust tokenizer. The token type and category enums in Token.h now mirror the Rust definitions in token.rs. Move is_syntax_character/is_whitespace/is_line_terminator helpers into RegExpConstructor.cpp as static functions, since they were only used there.
20 lines
459 B
TOML
20 lines
459 B
TOML
language = "C++"
|
|
header = """/*
|
|
* Copyright (c) 2026-present, the Ladybird developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/"""
|
|
pragma_once = true
|
|
include_version = true
|
|
namespaces = ["JS", "FFI"]
|
|
line_length = 120
|
|
tab_width = 4
|
|
no_includes = true
|
|
sys_includes = ["stdint.h", "stddef.h"]
|
|
usize_is_size_t = true
|
|
|
|
[export]
|
|
include = ["ConstantTag", "LiteralValueKind", "WellKnownSymbolKind", "FFIToken"]
|
|
|
|
[export.mangle]
|
|
rename_types = "PascalCase"
|