aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorMichael Davis2021-12-19 14:56:56 +0000
committerGitHub2021-12-19 14:56:56 +0000
commite72786df8eae5684c0330be18f190a33f516da76 (patch)
tree789dbb20133585155cd4554d30c3ef9580bf9434 /languages.toml
parent7c01d926536bcaacc92bbf4a2b1a06e96e6268a0 (diff)
Add tree-sitter-comment (#1300)
* Add tree-sitter-comment Fix #1164 * fix precedence in tree-sitter-comment highlights connects https://github.com/helix-editor/helix/pull/1170 * set injection-regex for comment language * remove comment filetype * fix comment injections for neovim-style injections tags * add comment injections for elixir * remove f.comment * fix spacing in .gitmodules * run 'cargo xtask docgen' Co-authored-by: Ivan Tham <pickfire@riseup.net>
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml9
1 files changed, 8 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 5c2bc8bb..0695022e 100644
--- a/languages.toml
+++ b/languages.toml
@@ -407,6 +407,13 @@ comment-token = ";"
language-server = { command = "racket", args = ["-l", "racket-langserver"] }
[[language]]
+name = "comment"
+scope = "scope.comment"
+roots = []
+file-types = []
+injection-regex = "comment"
+
+[[language]]
name = "wgsl"
scope = "source.wgsl"
file-types = ["wgsl"]
@@ -448,4 +455,4 @@ roots = ["build.sbt"]
file-types = ["scala", "sbt"]
comment-token = "//"
indent = { tab-width = 2, unit = " " }
-language-server = { command = "metals" } \ No newline at end of file
+language-server = { command = "metals" }