summaryrefslogtreecommitdiff
path: root/snakemake-mode.el
diff options
context:
space:
mode:
Diffstat (limited to 'snakemake-mode.el')
-rw-r--r--snakemake-mode.el3
1 files changed, 2 insertions, 1 deletions
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