Unnamed repository; edit this file 'description' to name the repository.
Update Snakemake language config (#11936)
Teemu Säilynoja 2024-11-21
parent 8807dbf · commit b92e8ab
-rw-r--r--languages.toml6
1 files changed, 5 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 00df4bf4..84171af3 100644
--- a/languages.toml
+++ b/languages.toml
@@ -3868,11 +3868,15 @@ source = { git = "https://github.com/Decurity/tree-sitter-circom", rev = "021505
name = "snakemake"
scope = "source.snakemake"
roots = ["Snakefile", "config.yaml", "environment.yaml", "workflow/"]
-file-types = ["smk", "Snakefile"]
+file-types = ["smk", { glob = "Snakefile" } ]
comment-tokens = ["#", "##"]
indent = { tab-width = 2, unit = " " }
language-servers = ["pylsp" ]
+[language.formatter]
+command = "snakefmt"
+args = ["-"]
+
[[grammar]]
name = "snakemake"
source = { git = "https://github.com/osthomas/tree-sitter-snakemake", rev = "e909815acdbe37e69440261ebb1091ed52e1dec6" }