mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 15:00:04 -04:00
fix(xml,dtd): adapt to parser changes
This commit is contained in:
parent
df20c04969
commit
a5c7a3f6b4
3 changed files with 47 additions and 66 deletions
|
|
@ -6,6 +6,7 @@
|
|||
[
|
||||
"version"
|
||||
"encoding"
|
||||
"standalone"
|
||||
] @tag.attribute)
|
||||
|
||||
(XMLDecl
|
||||
|
|
@ -14,6 +15,12 @@
|
|||
(XMLDecl
|
||||
(VersionNum) @number)
|
||||
|
||||
(XMLDecl
|
||||
[
|
||||
"yes"
|
||||
"no"
|
||||
] @boolean)
|
||||
|
||||
; Processing instructions
|
||||
(PI) @keyword.directive
|
||||
|
||||
|
|
@ -65,12 +72,6 @@
|
|||
"NOTATION" @keyword.directive
|
||||
(Name) @label)
|
||||
|
||||
(NotationDecl
|
||||
(ExternalID
|
||||
(SystemLiteral
|
||||
(URI) @string.special.url))
|
||||
(#set! priority 105))
|
||||
|
||||
; Attlist declaration
|
||||
(AttlistDecl
|
||||
"ATTLIST" @keyword.directive.define
|
||||
|
|
@ -118,45 +119,6 @@
|
|||
(SystemLiteral
|
||||
(URI) @string.special.url)
|
||||
|
||||
; Delimiters & punctuation
|
||||
[
|
||||
"<?"
|
||||
"?>"
|
||||
"<!"
|
||||
">"
|
||||
"]]>"
|
||||
] @tag.delimiter
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"\""
|
||||
"'"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
","
|
||||
"|"
|
||||
"="
|
||||
] @operator
|
||||
|
||||
; Misc
|
||||
(Comment) @comment @spell
|
||||
|
||||
; XML declaration
|
||||
(XMLDecl
|
||||
"standalone" @tag.attribute)
|
||||
|
||||
(XMLDecl
|
||||
[
|
||||
"yes"
|
||||
"no"
|
||||
] @boolean)
|
||||
|
||||
; Processing instructions
|
||||
(XmlModelPI
|
||||
"xml-model" @keyword.directive)
|
||||
|
|
@ -194,6 +156,36 @@
|
|||
(Attribute
|
||||
(AttValue) @string)
|
||||
|
||||
; Delimiters & punctuation
|
||||
[
|
||||
"<?"
|
||||
"?>"
|
||||
"<"
|
||||
">"
|
||||
"</"
|
||||
"/>"
|
||||
"<!"
|
||||
"]]>"
|
||||
] @tag.delimiter
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"\""
|
||||
"'"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
","
|
||||
"|"
|
||||
"="
|
||||
] @operator
|
||||
|
||||
; Text
|
||||
(CharData) @none @spell
|
||||
|
||||
|
|
@ -203,11 +195,5 @@
|
|||
"]]>" @module)
|
||||
(#set! priority 105))
|
||||
|
||||
; Delimiters & punctuation
|
||||
[
|
||||
"<"
|
||||
"</"
|
||||
"/>"
|
||||
] @tag.delimiter
|
||||
|
||||
"]" @punctuation.bracket
|
||||
; Misc
|
||||
(Comment) @comment @spell
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue