aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/languages.toml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/languages.toml')
-rw-r--r--.github/workflows/languages.toml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/languages.toml b/.github/workflows/languages.toml
new file mode 100644
index 00000000..18cf71cf
--- /dev/null
+++ b/.github/workflows/languages.toml
@@ -0,0 +1,26 @@
+# This languages.toml is used for testing in CI.
+
+[[language]]
+name = "rust"
+scope = "source.rust"
+injection-regex = "rust"
+file-types = ["rs"]
+comment-token = "//"
+roots = ["Cargo.toml", "Cargo.lock"]
+indent = { tab-width = 4, unit = " " }
+
+[[grammar]]
+name = "rust"
+source = { git = "https://github.com/tree-sitter/tree-sitter-rust", rev = "a360da0a29a19c281d08295a35ecd0544d2da211" }
+
+[[language]]
+name = "nix"
+scope = "source.nix"
+injection-regex = "nix"
+file-types = ["nix"]
+shebangs = []
+roots = []
+comment-token = "#"
+
+# A grammar entry is not necessary for this language - it is only used for
+# testing TOML merging behavior.