Basic html highlighting + lsp support
This commit is contained in:
committed by
Max Brunsfeld
parent
5d8fe33bd2
commit
a48995c782
@@ -0,0 +1,2 @@
|
||||
("<" @open ">" @close)
|
||||
("\"" @open "\"" @close)
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user