mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 17:00:09 -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
|
|
@ -1,17 +1,17 @@
|
|||
; XML declaration
|
||||
(XMLDecl
|
||||
; Text declaration
|
||||
(TextDecl
|
||||
"xml" @keyword.directive)
|
||||
|
||||
(XMLDecl
|
||||
(TextDecl
|
||||
[
|
||||
"version"
|
||||
"encoding"
|
||||
] @tag.attribute)
|
||||
|
||||
(XMLDecl
|
||||
(TextDecl
|
||||
(EncName) @string.special)
|
||||
|
||||
(XMLDecl
|
||||
(TextDecl
|
||||
(VersionNum) @number)
|
||||
|
||||
; Processing instructions
|
||||
|
|
@ -65,12 +65,6 @@
|
|||
"NOTATION" @keyword.directive
|
||||
(Name) @label)
|
||||
|
||||
(NotationDecl
|
||||
(ExternalID
|
||||
(SystemLiteral
|
||||
(URI) @string.special.url))
|
||||
(#set! priority 105))
|
||||
|
||||
; Attlist declaration
|
||||
(AttlistDecl
|
||||
"ATTLIST" @keyword.directive.define
|
||||
|
|
@ -124,6 +118,7 @@
|
|||
"?>"
|
||||
"<!"
|
||||
">"
|
||||
"<!["
|
||||
"]]>"
|
||||
] @tag.delimiter
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue