aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorMichael2023-04-12 20:28:51 +0000
committerGitHub2023-04-12 20:28:51 +0000
commit161fef2166e851071176e2fdaa9455efb5af0a6d (patch)
tree392a1241085ff5402bdb321bfbdbffc592b3c0d3 /languages.toml
parentfff8543b5809766608be14ee1a45f8b86f5a3de2 (diff)
Add DTD language support (#6644)
- Added syntax highlighting for the DTD subset of the XML spec. - Included .dtd and .ent as common file extensions
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml20
1 files changed, 20 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index 86688137..c497e296 100644
--- a/languages.toml
+++ b/languages.toml
@@ -2099,6 +2099,26 @@ roots = []
name = "xml"
source = { git = "https://github.com/RenjiSann/tree-sitter-xml", rev = "48a7c2b6fb9d515577e115e6788937e837815651" }
+
+[[language]]
+name = "dtd"
+scope = "source.dtd"
+injection-regex = "dtd"
+file-types = ["dtd", "ent"]
+indent = {tab-width = 2, unit = " "}
+roots = []
+
+[language.auto-pairs]
+'(' = ')'
+'[' = ']'
+'"' = '"'
+"'" = "'"
+'<' = '>'
+
+[[grammar]]
+name = "dtd"
+source = { git = "https://github.com/KMikeeU/tree-sitter-dtd", rev = "6116becb02a6b8e9588ef73d300a9ba4622e156f"}
+
[[language]]
name = "wit"
scope = "source.wit"