fix(xml,dtd): adapt to parser changes

This commit is contained in:
ObserverOfTime 2024-10-22 08:34:05 +03:00 committed by Christian Clason
parent df20c04969
commit a5c7a3f6b4
3 changed files with 47 additions and 66 deletions

View file

@ -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