mirror of https://github.com/helix-editor/helix
queries: Fix html highlight precedence ordering
parent
df752bbd45
commit
144a4f402f
|
@ -5,35 +5,35 @@
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
((attribute
|
((attribute
|
||||||
(attribute_name) @_attr
|
(attribute_name) @attribute
|
||||||
(quoted_attribute_value (attribute_value) @markup.link.url))
|
(quoted_attribute_value (attribute_value) @markup.link.url))
|
||||||
(#any-of? @_attr "href" "src"))
|
(#any-of? @attribute "href" "src"))
|
||||||
|
|
||||||
((element
|
((element
|
||||||
(start_tag
|
(start_tag
|
||||||
(tag_name) @_tag)
|
(tag_name) @tag)
|
||||||
(text) @markup.link.label)
|
(text) @markup.link.label)
|
||||||
(#eq? @_tag "a"))
|
(#eq? @tag "a"))
|
||||||
|
|
||||||
(attribute [(attribute_value) (quoted_attribute_value)] @string)
|
(attribute [(attribute_value) (quoted_attribute_value)] @string)
|
||||||
|
|
||||||
((element
|
((element
|
||||||
(start_tag
|
(start_tag
|
||||||
(tag_name) @_tag)
|
(tag_name) @tag)
|
||||||
(text) @markup.bold)
|
(text) @markup.bold)
|
||||||
(#any-of? @_tag "strong" "b"))
|
(#any-of? @tag "strong" "b"))
|
||||||
|
|
||||||
((element
|
((element
|
||||||
(start_tag
|
(start_tag
|
||||||
(tag_name) @_tag)
|
(tag_name) @tag)
|
||||||
(text) @markup.italic)
|
(text) @markup.italic)
|
||||||
(#any-of? @_tag "em" "i"))
|
(#any-of? @tag "em" "i"))
|
||||||
|
|
||||||
((element
|
((element
|
||||||
(start_tag
|
(start_tag
|
||||||
(tag_name) @_tag)
|
(tag_name) @tag)
|
||||||
(text) @markup.strikethrough)
|
(text) @markup.strikethrough)
|
||||||
(#any-of? @_tag "s" "del"))
|
(#any-of? @tag "s" "del"))
|
||||||
|
|
||||||
[
|
[
|
||||||
"<"
|
"<"
|
||||||
|
|
Loading…
Reference in New Issue