Tweak HTML indents and highlights

This commit is contained in:
Max Brunsfeld 2022-08-30 17:23:09 -07:00
parent e4f5e85c3c
commit 21fb2b9bf1
5 changed files with 16 additions and 2 deletions

View file

@ -1,11 +1,15 @@
(tag_name) @keyword
(erroneous_end_tag_name) @keyword
(doctype) @constant
(attribute_name) @property
(attribute_value) @string
(comment) @comment
"=" @operator
[
"<"
">"
"</"
"/>"
] @punctuation.bracket

View file

@ -1 +1,6 @@
(tag_name) @indent
(start_tag ">" @end) @indent
(self_closing_tag "/>" @end) @indent
(element
(start_tag) @start
(end_tag)? @end) @indent

View file

@ -1,4 +1,3 @@
(script_element
(raw_text) @content
(#set! "language" "javascript"))