Constant tree_sitter_xml::DTD_HIGHLIGHT_QUERY
source ยท pub const DTD_HIGHLIGHT_QUERY: &str = ";; XML declaration\n\n(XMLDecl \"xml\" @keyword)\n\n(XMLDecl [ \"version\" \"encoding\" ] @property)\n\n(XMLDecl (EncName) @string.special)\n\n(XMLDecl (VersionNum) @number)\n\n;; Processing instructions\n\n(PI) @embedded\n\n(PI (PITarget) @keyword)\n\n;; Element declaration\n\n(elementdecl\n \"ELEMENT\" @keyword\n (Name) @tag)\n\n(contentspec\n (_ (Name) @property))\n\n\"#PCDATA\" @type.builtin\n\n[ \"EMPTY\" \"ANY\" ] @string.special.symbol\n\n[ \"*\" \"?\" \"+\" ] @operator\n\n;; Entity declaration\n\n(GEDecl\n \"ENTITY\" @keyword\n (Name) @constant)\n\n(GEDecl (EntityValue) @string)\n\n(NDataDecl\n \"NDATA\" @keyword\n (Name) @label)\n\n;; Parsed entity declaration\n\n(PEDecl\n \"ENTITY\" @keyword\n \"%\" @operator\n (Name) @constant)\n\n(PEDecl (EntityValue) @string)\n\n;; Notation declaration\n\n(NotationDecl\n \"NOTATION\" @keyword\n (Name) @constant)\n\n(NotationDecl\n (ExternalID\n (SystemLiteral (URI) @string.special)))\n\n;; Attlist declaration\n\n(AttlistDecl\n \"ATTLIST\" @keyword\n (Name) @tag)\n\n(AttDef (Name) @property)\n\n(AttDef (Enumeration (Nmtoken) @string))\n\n(DefaultDecl (AttValue) @string)\n\n[\n (StringType)\n (TokenizedType)\n] @type.builtin\n\n(NotationType \"NOTATION\" @type.builtin)\n\n[\n \"#REQUIRED\"\n \"#IMPLIED\"\n \"#FIXED\"\n] @attribute\n\n;; Entities\n\n(EntityRef) @constant\n\n((EntityRef) @constant.builtin\n (#any-of? @constant.builtin\n \"&\" \"<\" \">\" \""\" \"'\"))\n\n(CharRef) @constant\n\n(PEReference) @constant\n\n;; External references\n\n[ \"PUBLIC\" \"SYSTEM\" ] @keyword\n\n(PubidLiteral) @string.special\n\n(SystemLiteral (URI) @markup.link)\n\n;; Delimiters & punctuation\n\n[ \"<?\" \"?>\" \"<!\" \">\" \"]]>\" ] @punctuation.delimiter\n\n[ \"(\" \")\" \"[\" ] @punctuation.bracket\n\n[ \"\\\"\" \"\'\" ] @punctuation.delimiter\n\n[ \",\" \"|\" \"=\" ] @operator\n\n;; Misc\n\n[ \"INCLUDE\" \"IGNORE\" ] @keyword\n\n(Comment) @comment\n\n(ERROR) @error\n";
Expand description
The syntax highlighting queries for DTD.