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.
48 lines
840 B
Scheme
48 lines
840 B
Scheme
(tag_name) @tag
|
|
(erroneous_end_tag_name) @error
|
|
(doctype) @constant
|
|
(attribute_name) @attribute
|
|
(entity) @string.special.symbol
|
|
(comment) @comment
|
|
|
|
((attribute
|
|
(attribute_name) @attribute
|
|
(quoted_attribute_value (attribute_value) @markup.link.url))
|
|
(#any-of? @attribute "href" "src"))
|
|
|
|
((element
|
|
(start_tag
|
|
(tag_name) @tag)
|
|
(text) @markup.link.label)
|
|
(#eq? @tag "a"))
|
|
|
|
(attribute [(attribute_value) (quoted_attribute_value)] @string)
|
|
|
|
((element
|
|
(start_tag
|
|
(tag_name) @tag)
|
|
(text) @markup.bold)
|
|
(#any-of? @tag "strong" "b"))
|
|
|
|
((element
|
|
(start_tag
|
|
(tag_name) @tag)
|
|
(text) @markup.italic)
|
|
(#any-of? @tag "em" "i"))
|
|
|
|
((element
|
|
(start_tag
|
|
(tag_name) @tag)
|
|
(text) @markup.strikethrough)
|
|
(#any-of? @tag "s" "del"))
|
|
|
|
[
|
|
"<"
|
|
">"
|
|
"</"
|
|
"/>"
|
|
"<!"
|
|
] @punctuation.bracket
|
|
|
|
"=" @punctuation.delimiter
|