summaryrefslogtreecommitdiff
path: root/snakemake-mode.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-03-05 00:55:21 -0500
committerKyle Meyer <kyle@kyleam.com>2015-03-05 00:55:21 -0500
commit7552b0ac316b6593480c84f2c34a99bc30367015 (patch)
tree5a374906a8e6f60e91ca73dc7ee4693b28e5e54b /snakemake-mode.el
parentcb093103567dc191aeb2ff331f580dc675e88680 (diff)
downloadsnakemake-mode-7552b0ac316b6593480c84f2c34a99bc30367015.tar.gz
Add onsuccess and onerror keywords
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