mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
808 B
Scheme
47 lines
808 B
Scheme
(tag_name) @tag
|
|
(erroneous_end_tag_name) @error
|
|
(doctype) @constant
|
|
(attribute_name) @attribute
|
|
(comment) @comment
|
|
|
|
((attribute
|
|
(attribute_name) @_attr
|
|
(quoted_attribute_value (attribute_value) @markup.link.url))
|
|
(#any-of? @_attr "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
|