mirror of https://github.com/helix-editor/helix
feat(lang): add xml (#4518)
parent
2935e9da19
commit
f054a3f3ed
@ -0,0 +1,42 @@
|
||||
(comment) @comment
|
||||
|
||||
[
|
||||
"DOCTYPE"
|
||||
"ELEMENT"
|
||||
"ATTLIST"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"#REQUIRED"
|
||||
"#IMPLIED"
|
||||
"#FIXED"
|
||||
"#PCDATA"
|
||||
] @keyword.directive
|
||||
|
||||
[
|
||||
"EMPTY"
|
||||
"ANY"
|
||||
"SYSTEM"
|
||||
"PUBLIC"
|
||||
] @constant
|
||||
|
||||
(doctype) @variable
|
||||
(element_name) @variable
|
||||
|
||||
"xml" @tag
|
||||
(tag_name) @tag
|
||||
|
||||
[
|
||||
"encoding"
|
||||
"version"
|
||||
"standalone"
|
||||
] @attribute
|
||||
(attribute_name) @attribute
|
||||
|
||||
(system_literal) @string
|
||||
(pubid_literal) @string
|
||||
(attribute_value) @string
|
||||
|
||||
[
|
||||
"<" ">" "</" "/>" "<?" "?>" "<!"
|
||||
] @punctuation.bracket
|
@ -0,0 +1 @@
|
||||
(element) @indent
|
@ -0,0 +1,2 @@
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
Loading…
Reference in New Issue