feat(highlight): migrate to tree-house with Helix queries

Replace tree-sitter-highlight dep with tree-house crate from Helix
editor. Add ropey dependency required by tree-house.

Reorganize query files from Helix's runtime/queries/ for all 14
supported languages:
- bash, c, css, go, html, javascript, json, markdown, nix, python,
  rust, toml, typescript, yaml
- Include ecma, _javascript, _typescript base dirs for JS/TS inheritance
- Copy highlights.scm, injections.scm, locals.scm where available

This commit establishes the foundation; highlight.rs implementation
will follow in subsequent commits.
This commit is contained in:
Timothy DeHerrera
2026-02-04 16:49:04 -07:00
parent 98977136c8
commit 136be19533
43 changed files with 3310 additions and 85 deletions

View File

@@ -0,0 +1,38 @@
((comment) @injection.content
(#set! injection.language "comment"))
(command
name: (command_name (word) @_command)
argument: (raw_string) @injection.content
(#match? @_command "^[gnm]?awk$")
(#set! injection.language "awk"))
((regex) @injection.content
(#set! injection.language "regex"))
(command
name: (command_name (word) @_command (#any-of? @_command "jq" "jaq"))
argument: [
(raw_string) @injection.content
(string (string_content) @injection.content)
]
(#set! injection.language "jq"))
(command
name: (command_name (word) @_command (#eq? @_command "alias"))
argument: (concatenation
(word)
[
(raw_string) @injection.content
(string (string_content) @injection.content)
])
(#set! injection.language "bash"))
(command
name: (command_name (word) @_command (#any-of? @_command "eval" "trap"))
.
argument: [
(raw_string) @injection.content
(string (string_content) @injection.content)
]
(#set! injection.language "bash"))