aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-11-01 15:36:51 -0500
committerKyle Meyer <kyle@kyleam.com>2020-11-01 16:08:23 -0500
commit7cf04e2e0c4ca91adc69391fdee8a4a712662fb1 (patch)
tree7890fc73058fdb72716c927b62d2081d325044b3
parent835862adab409544320a3ff8572c40658d6501f4 (diff)
downloadsnakemake-mode-7cf04e2e0c4ca91adc69391fdee8a4a712662fb1.tar.gz
mode: Add "container" and "envmodules" keywords
Register "container" as both a field key and a top-level command because an example of both is present in the Snakemake docs. Reported-by: Nicholas Knoblauch <knoblauch.nicholas@gene.com> Message-Id: <87eelcak64.fsf@kyleam.com>
-rw-r--r--NEWS5
-rw-r--r--snakemake-mode.el3
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index f046551..2743025 100644
--- a/NEWS
+++ b/NEWS
@@ -2,8 +2,9 @@ NEWS -- history of user-visible changes -*- mode: org; -*-
* master (unreleased)
-- Additional Snakemake keywords are now recognized: 'envvars' (new in
- Snakemake v5.11.0) and 'cache' keyword (new in v5.12.0).
+- Additional Snakemake keywords are now recognized: 'envmodules' (new
+ in Snakemake v5.9.0), 'envvars' (new in v5.11.0), 'container' (new
+ in v5.11.0), and 'cache' (new in v5.12.0).
* v1.7.0
diff --git a/snakemake-mode.el b/snakemake-mode.el
index 5f603ee..cc4d372 100644
--- a/snakemake-mode.el
+++ b/snakemake-mode.el
@@ -85,7 +85,9 @@
(or "benchmark"
"cache"
"conda"
+ "container"
"cwl"
+ "envmodules"
"group"
"input"
"log"
@@ -110,6 +112,7 @@
symbol-end))
(sm-command . ,(rx symbol-start
(or "configfile"
+ "container"
"envvars"
"include"
"localrules"