aboutsummaryrefslogtreecommitdiffstats
path: root/queries/html/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/html/highlights.scm')
-rw-r--r--queries/html/highlights.scm44
1 files changed, 3 insertions, 41 deletions
diff --git a/queries/html/highlights.scm b/queries/html/highlights.scm
index 97fd0d662..6da261c0a 100644
--- a/queries/html/highlights.scm
+++ b/queries/html/highlights.scm
@@ -1,43 +1,5 @@
-(tag_name) @tag
-(erroneous_end_tag_name) @error
-(doctype) @constant
-(attribute_name) @property
-(attribute_value) @string
-(quoted_attribute_value) @string
-(comment) @comment
-
-((element (start_tag (tag_name) @_tag) (text) @text.title)
- (#match? @_tag "^(h[0-9]|title)$"))
-
-((element (start_tag (tag_name) @_tag) (text) @text.strong)
- (#match? @_tag "^(strong|b)$"))
-
-((element (start_tag (tag_name) @_tag) (text) @text.emphasis)
- (#match? @_tag "^(em|i)$"))
-
-((element (start_tag (tag_name) @_tag) (text) @text.strike)
- (#match? @_tag "^(s|del)$"))
+; inherits: html_tags
-((element (start_tag (tag_name) @_tag) (text) @text.underline)
- (#eq? @_tag "u"))
-
-((element (start_tag (tag_name) @_tag) (text) @text.literal)
- (#match? @_tag "^(code|kbd)$"))
-
-((element (start_tag (tag_name) @_tag) (text) @text.uri)
- (#eq? @_tag "a"))
-
-((attribute
- (attribute_name) @_attr
- (quoted_attribute_value (attribute_value) @text.uri))
- (#match? @_attr "^(href|src)$"))
-
-"=" @operator
+(doctype) @constant
-[
- "<"
- "<!"
- ">"
- "</"
- "/>"
-] @tag.delimiter
+"<!" @tag.delimiter