diff options
Diffstat (limited to 'runtime/queries/xml')
-rw-r--r-- | runtime/queries/xml/highlights.scm | 42 | ||||
-rw-r--r-- | runtime/queries/xml/indents.scm | 1 | ||||
-rw-r--r-- | runtime/queries/xml/injections.scm | 2 |
3 files changed, 45 insertions, 0 deletions
diff --git a/runtime/queries/xml/highlights.scm b/runtime/queries/xml/highlights.scm new file mode 100644 index 00000000..d5940c8a --- /dev/null +++ b/runtime/queries/xml/highlights.scm @@ -0,0 +1,42 @@ +(comment) @comment + +[ + "DOCTYPE" + "ELEMENT" + "ATTLIST" +] @keyword + +[ + "#REQUIRED" + "#IMPLIED" + "#FIXED" + "#PCDATA" +] @keyword.directive + +[ + "EMPTY" + "ANY" + "SYSTEM" + "PUBLIC" +] @constant + +(doctype) @variable +(element_name) @variable + +"xml" @tag +(tag_name) @tag + +[ + "encoding" + "version" + "standalone" +] @attribute +(attribute_name) @attribute + +(system_literal) @string +(pubid_literal) @string +(attribute_value) @string + +[ + "<" ">" "</" "/>" "<?" "?>" "<!" +] @punctuation.bracket diff --git a/runtime/queries/xml/indents.scm b/runtime/queries/xml/indents.scm new file mode 100644 index 00000000..d756debb --- /dev/null +++ b/runtime/queries/xml/indents.scm @@ -0,0 +1 @@ +(element) @indent diff --git a/runtime/queries/xml/injections.scm b/runtime/queries/xml/injections.scm new file mode 100644 index 00000000..321c90ad --- /dev/null +++ b/runtime/queries/xml/injections.scm @@ -0,0 +1,2 @@ +((comment) @injection.content + (#set! injection.language "comment")) |