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.
39 lines
769 B
Scheme
39 lines
769 B
Scheme
;; Scopes
|
|
(function_definition) @local.scope
|
|
|
|
;; Definitions
|
|
|
|
; Parameters
|
|
; Up to 6 layers of declarators
|
|
(parameter_declaration
|
|
(identifier) @local.definition.variable.parameter)
|
|
(parameter_declaration
|
|
(_
|
|
(identifier) @local.definition.variable.parameter))
|
|
(parameter_declaration
|
|
(_
|
|
(_
|
|
(identifier) @local.definition.variable.parameter)))
|
|
(parameter_declaration
|
|
(_
|
|
(_
|
|
(_
|
|
(identifier) @local.definition.variable.parameter))))
|
|
(parameter_declaration
|
|
(_
|
|
(_
|
|
(_
|
|
(_
|
|
(identifier) @local.definition.variable.parameter)))))
|
|
(parameter_declaration
|
|
(_
|
|
(_
|
|
(_
|
|
(_
|
|
(_
|
|
(identifier) @local.definition.variable.parameter))))))
|
|
|
|
;; References
|
|
|
|
(identifier) @local.reference
|