Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/html/highlights.scm')
| -rw-r--r-- | runtime/queries/html/highlights.scm | 37 |
1 files changed, 5 insertions, 32 deletions
diff --git a/runtime/queries/html/highlights.scm b/runtime/queries/html/highlights.scm index 9227bfca..99f39c95 100644 --- a/runtime/queries/html/highlights.scm +++ b/runtime/queries/html/highlights.scm @@ -1,40 +1,13 @@ (tag_name) @tag -(erroneous_end_tag_name) @error +(erroneous_end_tag_name) @tag.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")) +[ + "\"" + (attribute_value) +] @string [ "<" |