chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -1,53 +1,65 @@
; inherits: dtd
; XML declaration
(XMLDecl
"standalone" @tag.attribute)
;; XML declaration
(XMLDecl
[
"yes"
"no"
] @boolean)
(XMLDecl "standalone" @tag.attribute)
; Processing instructions
(XmlModelPI
"xml-model" @keyword.directive)
(XMLDecl [ "yes" "no" ] @boolean)
(StyleSheetPI
"xml-stylesheet" @keyword.directive)
;; Processing instructions
(PseudoAtt
(Name) @tag.attribute)
(XmlModelPI "xml-model" @keyword.directive)
(PseudoAtt
(PseudoAttValue) @string)
(StyleSheetPI "xml-stylesheet" @keyword.directive)
; Doctype declaration
(doctypedecl
"DOCTYPE" @keyword.directive.define)
(PseudoAtt (Name) @tag.attribute)
(doctypedecl
(Name) @type.definition)
(PseudoAtt (PseudoAttValue) @string)
; Tags
(STag
(Name) @tag)
;; Doctype declaration
(ETag
(Name) @tag)
(doctypedecl "DOCTYPE" @keyword.directive.define)
(EmptyElemTag
(Name) @tag)
(doctypedecl (Name) @type.definition)
; Attributes
(Attribute
(Name) @tag.attribute)
;; Tags
(STag (Name) @tag)
(ETag (Name) @tag)
(EmptyElemTag (Name) @tag)
;; Attributes
(Attribute (Name) @tag.attribute)
(Attribute (AttValue) @string)
;; Text
(Attribute
(AttValue) @string)
; Text
(CharData) @none @spell
((CDSect
(CDStart) @markup.environment
(CData) @markup.raw
"]]>" @markup.environment)
(#set! "priority" 105))
(#set! "priority" 105))
;; Delimiters & punctuation
[ "<" "</" "/>" ] @tag.delimiter
; Delimiters & punctuation
[
"<"
"</"
"/>"
] @tag.delimiter
"]" @punctuation.bracket