Vendor libtree-sitter.so (v0.26.8, wasmtime 44.0 statically linked) and call its C API through dart:ffi. Grammar WASM files are loaded by tree-sitter's embedded wasmtime engine via ts_wasm_store_load_language. 48 grammars compiled with tree-sitter build --wasm, 48 highlight queries (42 from upstream repos, 6 written in-house for comment, erlang, gdscript, gitignore, hcl, hlsl, swift). SQLite grammar replaces full SQL (974K-line parser exhausted RAM at compile time). Removes wasm_run and wasm_run_flutter — they downloaded a 22 MB binary from GitHub at first launch, violating the no-network-on- default-launch-path policy. Co-Authored-By: Claude <noreply@anthropic.com>
60 lines
1.0 KiB
Scheme
60 lines
1.0 KiB
Scheme
[
|
|
"if" "elif" "else"
|
|
"for" "while"
|
|
"match"
|
|
"break" "continue" "pass"
|
|
"return"
|
|
"class" "class_name" "extends"
|
|
"func" "static" "const" "var" "onready"
|
|
"signal" "export" "enum"
|
|
"await" "yield"
|
|
"in" "is" "as" "not" "and" "or"
|
|
"true" "false" "null"
|
|
"self"
|
|
"breakpoint"
|
|
"preload" "load"
|
|
] @keyword
|
|
|
|
(function_definition (name) @function)
|
|
(constructor_definition (name) @function)
|
|
(call (name) @function)
|
|
(attribute_call (name) @function)
|
|
|
|
(class_definition (name) @type)
|
|
(type) @type
|
|
(class_name_statement (name) @type)
|
|
|
|
(string) @string
|
|
(node_path) @string
|
|
(string_name) @string
|
|
(escape_sequence) @string.special
|
|
|
|
(integer) @number
|
|
(float) @number
|
|
(true) @boolean
|
|
(false) @boolean
|
|
(null) @constant.builtin
|
|
|
|
(comment) @comment
|
|
|
|
(identifier) @variable
|
|
(attribute) @property
|
|
|
|
(annotation) @attribute
|
|
|
|
[
|
|
"(" ")" "[" "]" "{" "}"
|
|
] @punctuation.bracket
|
|
|
|
[
|
|
"," "." ":" "->" ";"
|
|
] @punctuation.delimiter
|
|
|
|
[
|
|
"=" "+=" "-=" "*=" "/=" "%="
|
|
"+" "-" "*" "/" "%"
|
|
"==" "!=" "<" ">" "<=" ">="
|
|
"&&" "||" "!"
|
|
"&" "|" "^" "~" "<<" ">>"
|
|
] @operator
|