Tweak HTML indents and highlights

This commit is contained in:
Max Brunsfeld
2022-09-28 12:32:04 -07:00
parent e4f5e85c3c
commit 21fb2b9bf1
5 changed files with 16 additions and 2 deletions
@@ -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
+6 -1
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
@@ -1,4 +1,3 @@
(script_element
(raw_text) @content
(#set! "language" "javascript"))