Basic html highlighting + lsp support

This commit is contained in:
Isaac Clayton
2022-09-28 12:32:04 -07:00
committed by Max Brunsfeld
parent 5d8fe33bd2
commit a48995c782
9 changed files with 143 additions and 0 deletions
@@ -0,0 +1,2 @@
("<" @open ">" @close)
("\"" @open "\"" @close)
+10
View File
@@ -0,0 +1,10 @@
name = "HTML"
path_suffixes = ["html"]
autoclose_before = ">"
brackets = [
{ start = "<", end = ">", close = true, newline = true },
{ start = "{", end = "}", close = true, newline = true },
{ start = "(", end = ")", close = true, newline = true },
{ start = "\"", end = "\"", close = true, newline = false },
{ start = "!--", end = " --", close = true, newline = false },
]
@@ -0,0 +1,11 @@
(tag_name) @keyword
(doctype) @constant
(attribute_name) @property
(attribute_value) @string
(comment) @comment
[
"<"
">"
"</"
] @punctuation.bracket
@@ -0,0 +1 @@
(tag_name) @indent