diff options
Diffstat (limited to 'queries/xml/highlights.scm')
| -rw-r--r-- | queries/xml/highlights.scm | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/queries/xml/highlights.scm b/queries/xml/highlights.scm new file mode 100644 index 000000000..e47636ac4 --- /dev/null +++ b/queries/xml/highlights.scm @@ -0,0 +1,53 @@ +; inherits: dtd + +;; XML declaration + +(XMLDecl "standalone" @tag.attribute) + +(XMLDecl [ "yes" "no" ] @boolean) + +;; Processing instructions + +(XmlModelPI "xml-model" @preproc) + +(StyleSheetPI "xml-stylesheet" @preproc) + +(PseudoAtt (Name) @tag.attribute) + +(PseudoAtt (PseudoAttValue) @string) + +;; Doctype declaration + +(doctypedecl "DOCTYPE" @define) + +(doctypedecl (Name) @type.definition) + +;; Tags + +(STag (Name) @tag) + +(ETag (Name) @tag) + +(EmptyElemTag (Name) @tag) + +;; Attributes + +(Attribute (Name) @tag.attribute) + +(Attribute (AttValue) @string) + +;; Text + +(CharData) @text @spell + +((CDSect + (CDStart) @text.environment + (CData) @text.literal + "]]>" @text.environment) + (#set! "priority" 105)) + +;; Delimiters & punctuation + +[ "<" "</" "/>" ] @tag.delimiter + +"]" @punctuation.bracket |
