aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rw-r--r--snakemake-mode.el3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 12753ec..e7f01db 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,9 @@
- The 'configfile' keyword (introduced in Snakemake version 3.1) is
now recognized.
+- The 'onsuccess' and 'onerror' keywords (introduced in Snakemake
+ version 3.2.1) are now recognized.
+
* v0.2.0
** New features
diff --git a/snakemake-mode.el b/snakemake-mode.el
index cff96f9..dc43d7b 100644
--- a/snakemake-mode.el
+++ b/snakemake-mode.el
@@ -89,7 +89,8 @@
"Regexp matching a rule or subworkflow at start of line.")
(defconst snakemake-toplevel-command-re
- "^\\(include\\|workdir\\|ruleorder\\|configfile\\):"
+ (concat "^\\(include\\|workdir\\|ruleorder\\|configfile"
+ "\\|onsuccess\\|onerror\\):")
"Regexp matching other toplevel commands aside from 'rule'.")
(defconst snakemake-field-key-re