mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
4
runtime/queries/dtd/folds.scm
Normal file
4
runtime/queries/dtd/folds.scm
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[
|
||||
(conditionalSect)
|
||||
(Comment)
|
||||
] @fold
|
||||
121
runtime/queries/dtd/highlights.scm
Normal file
121
runtime/queries/dtd/highlights.scm
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
;; XML declaration
|
||||
|
||||
(XMLDecl "xml" @preproc)
|
||||
|
||||
(XMLDecl [ "version" "encoding" ] @tag.attribute)
|
||||
|
||||
(XMLDecl (EncName) @string.special)
|
||||
|
||||
(XMLDecl (VersionNum) @number)
|
||||
|
||||
;; Processing instructions
|
||||
|
||||
(PI) @preproc
|
||||
|
||||
;; Element declaration
|
||||
|
||||
(elementdecl
|
||||
"ELEMENT" @define
|
||||
(Name) @tag)
|
||||
|
||||
(contentspec
|
||||
(_ (Name) @tag.attribute))
|
||||
|
||||
"#PCDATA" @type.builtin
|
||||
|
||||
[ "EMPTY" "ANY" ] @type.qualifier
|
||||
|
||||
[ "*" "?" "+" ] @character.special
|
||||
|
||||
;; Entity declaration
|
||||
|
||||
(GEDecl
|
||||
"ENTITY" @define
|
||||
(Name) @constant)
|
||||
|
||||
(GEDecl (EntityValue) @string)
|
||||
|
||||
(NDataDecl
|
||||
"NDATA" @keyword
|
||||
(Name) @label)
|
||||
|
||||
;; Parsed entity declaration
|
||||
|
||||
(PEDecl
|
||||
"ENTITY" @define
|
||||
"%" @operator
|
||||
(Name) @function.macro)
|
||||
|
||||
(PEDecl (EntityValue) @string)
|
||||
|
||||
;; Notation declaration
|
||||
|
||||
(NotationDecl
|
||||
"NOTATION" @preproc
|
||||
(Name) @label)
|
||||
|
||||
((NotationDecl
|
||||
(ExternalID
|
||||
(SystemLiteral (URI) @string.special))
|
||||
(#set! "priority" 105)))
|
||||
|
||||
;; Attlist declaration
|
||||
|
||||
(AttlistDecl
|
||||
"ATTLIST" @define
|
||||
(Name) @tag)
|
||||
|
||||
(AttDef (Name) @tag.attribute)
|
||||
|
||||
(AttDef (Enumeration (Nmtoken) @string))
|
||||
|
||||
[
|
||||
(StringType)
|
||||
(TokenizedType)
|
||||
] @type.builtin
|
||||
|
||||
(NotationType "NOTATION" @type.builtin)
|
||||
|
||||
[
|
||||
"#REQUIRED"
|
||||
"#IMPLIED"
|
||||
"#FIXED"
|
||||
] @attribute
|
||||
|
||||
;; Entities
|
||||
|
||||
(EntityRef) @constant
|
||||
|
||||
((EntityRef) @constant.builtin
|
||||
(#any-of? @constant.builtin
|
||||
"&" "<" ">" """ "'"))
|
||||
|
||||
(CharRef) @character
|
||||
|
||||
(PEReference) @function.macro
|
||||
|
||||
;; External references
|
||||
|
||||
[ "PUBLIC" "SYSTEM" ] @keyword
|
||||
|
||||
(PubidLiteral) @string.special
|
||||
|
||||
(SystemLiteral (URI) @text.uri)
|
||||
|
||||
;; Delimiters & punctuation
|
||||
|
||||
[ "<?" "?>" "<!" ">" "]]>" ] @tag.delimiter
|
||||
|
||||
[ "(" ")" "[" ] @punctuation.bracket
|
||||
|
||||
[ "\"" "'" ] @punctuation.delimiter
|
||||
|
||||
[ "," "|" "=" ] @operator
|
||||
|
||||
;; Misc
|
||||
|
||||
[ "INCLUDE" "IGNORE" ] @include
|
||||
|
||||
(Comment) @comment @spell
|
||||
|
||||
(ERROR) @error
|
||||
1
runtime/queries/dtd/injections.scm
Normal file
1
runtime/queries/dtd/injections.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(Comment) @comment
|
||||
Loading…
Add table
Add a link
Reference in a new issue