summaryrefslogtreecommitdiff
path: root/runtime/queries/dtd/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/dtd/highlights.scm')
-rw-r--r--runtime/queries/dtd/highlights.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/runtime/queries/dtd/highlights.scm b/runtime/queries/dtd/highlights.scm
new file mode 100644
index 00000000..cb3d482b
--- /dev/null
+++ b/runtime/queries/dtd/highlights.scm
@@ -0,0 +1,39 @@
+; highlights.scm
+
+(comment) @comment
+
+[
+ "ELEMENT"
+ "ATTLIST"
+] @keyword
+
+[
+ "#REQUIRED"
+ "#IMPLIED"
+ "#FIXED"
+ "#PCDATA"
+] @keyword.directive
+
+[
+ "EMPTY"
+ "ANY"
+ "SYSTEM"
+ "PUBLIC"
+] @constant
+
+(element_name) @module
+
+
+(attribute_name) @attribute
+
+(system_literal) @string
+(pubid_literal) @string
+(attribute_value) @string
+
+[
+ ">"
+ "</"
+ "<?"
+ "?>"
+ "<!"
+] @punctuation.bracket