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>
48 lines
787 B
Scheme
48 lines
787 B
Scheme
;From nvim-treesitter/nvim-treesitter
|
|
(atx_heading
|
|
(inline) @text.title)
|
|
|
|
(setext_heading
|
|
(paragraph) @text.title)
|
|
|
|
[
|
|
(atx_h1_marker)
|
|
(atx_h2_marker)
|
|
(atx_h3_marker)
|
|
(atx_h4_marker)
|
|
(atx_h5_marker)
|
|
(atx_h6_marker)
|
|
(setext_h1_underline)
|
|
(setext_h2_underline)
|
|
] @punctuation.special
|
|
|
|
[
|
|
(link_title)
|
|
(indented_code_block)
|
|
(fenced_code_block)
|
|
] @text.literal
|
|
|
|
(fenced_code_block_delimiter) @punctuation.delimiter
|
|
|
|
(code_fence_content) @none
|
|
|
|
(link_destination) @text.uri
|
|
|
|
(link_label) @text.reference
|
|
|
|
[
|
|
(list_marker_plus)
|
|
(list_marker_minus)
|
|
(list_marker_star)
|
|
(list_marker_dot)
|
|
(list_marker_parenthesis)
|
|
(thematic_break)
|
|
] @punctuation.special
|
|
|
|
[
|
|
(block_continuation)
|
|
(block_quote_marker)
|
|
] @punctuation.special
|
|
|
|
(backslash_escape) @string.escape
|