aboutsummaryrefslogtreecommitdiffstats
path: root/queries/dtd
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2024-10-22 08:34:05 +0300
committerChristian Clason <ch.clason+github@icloud.com>2024-10-22 08:56:17 +0200
commita5c7a3f6b46f4cbc3ee3d56f403afb6565291cae (patch)
treea3e7cd631674848112f9eae7e255d964fb9e14ce /queries/dtd
parentbot(lockfile): update swift, tlaplus, vimdoc, xresources (diff)
downloadnvim-treesitter-a5c7a3f6b46f4cbc3ee3d56f403afb6565291cae.tar
nvim-treesitter-a5c7a3f6b46f4cbc3ee3d56f403afb6565291cae.tar.gz
nvim-treesitter-a5c7a3f6b46f4cbc3ee3d56f403afb6565291cae.tar.bz2
nvim-treesitter-a5c7a3f6b46f4cbc3ee3d56f403afb6565291cae.tar.lz
nvim-treesitter-a5c7a3f6b46f4cbc3ee3d56f403afb6565291cae.tar.xz
nvim-treesitter-a5c7a3f6b46f4cbc3ee3d56f403afb6565291cae.tar.zst
nvim-treesitter-a5c7a3f6b46f4cbc3ee3d56f403afb6565291cae.zip
fix(xml,dtd): adapt to parser changes
Diffstat (limited to 'queries/dtd')
-rw-r--r--queries/dtd/highlights.scm17
1 files changed, 6 insertions, 11 deletions
diff --git a/queries/dtd/highlights.scm b/queries/dtd/highlights.scm
index e573ca387..9afd6e38b 100644
--- a/queries/dtd/highlights.scm
+++ b/queries/dtd/highlights.scm
@@ -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