aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorSebastian Neubauer2022-01-03 01:57:55 +0000
committerGitHub2022-01-03 01:57:55 +0000
commit8f2af713408b8b40cf71873bbc0ddc009a7b3da5 (patch)
tree68a0add35a49f2dd341f245a1ad06cbb06c29ec5 /languages.toml
parent93a948d889f3d8fba97a37f163d080f9908dbaa3 (diff)
Add LLVM TableGen highlighting (#1409)
Add a tree-sitter grammar and highlights for TableGen files. TableGen and its grammar are described here: https://llvm.org/docs/TableGen/index.html Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml9
1 files changed, 9 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index f088a3aa..7a895a60 100644
--- a/languages.toml
+++ b/languages.toml
@@ -437,6 +437,15 @@ comment-token = ";"
indent = { tab-width = 2, unit = " " }
[[language]]
+name = "tablegen"
+scope = "source.tablegen"
+roots = []
+file-types = ["td"]
+comment-token = "//"
+indent = { tab-width = 2, unit = " " }
+injection-regex = "tablegen"
+
+[[language]]
name = "markdown"
scope = "source.md"
injection-regex = "md|markdown"