From 161fef2166e851071176e2fdaa9455efb5af0a6d Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 12 Apr 2023 22:28:51 +0200 Subject: Add DTD language support (#6644) - Added syntax highlighting for the DTD subset of the XML spec. - Included .dtd and .ent as common file extensions--- runtime/queries/dtd/highlights.scm | 39 ++++++++++++++++++++++++++++++++++++++ runtime/queries/dtd/injections.scm | 2 ++ 2 files changed, 41 insertions(+) create mode 100644 runtime/queries/dtd/highlights.scm create mode 100644 runtime/queries/dtd/injections.scm (limited to 'runtime/queries') 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 + +[ + ">" + "" + "