summaryrefslogtreecommitdiff
path: root/snakemake-mode.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-05-03 01:14:34 -0400
committerKyle Meyer <kyle@kyleam.com>2016-05-03 01:14:34 -0400
commit5350b3b4e88e29ce4c51c97f2638e0e9f794b7cf (patch)
treed02ee718b89b68121fddfe0db6ca2a0f2497a51d /snakemake-mode.el
parent2d3e788681ef1ba7e34f9b7f2b303b079b6ee05b (diff)
downloadsnakemake-mode-5350b3b4e88e29ce4c51c97f2638e0e9f794b7cf.tar.gz
Allow spaces after rule/subworkflow name
Diffstat (limited to 'snakemake-mode.el')
-rw-r--r--snakemake-mode.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/snakemake-mode.el b/snakemake-mode.el
index 93e42e6..9c47afe 100644
--- a/snakemake-mode.el
+++ b/snakemake-mode.el
@@ -76,8 +76,11 @@
(rx (or (and (group symbol-start (or "rule" "subworkflow"))
" "
(group (one-or-more (or (syntax word) (syntax symbol))))
+ (zero-or-more space)
":")
- (and (group symbol-start "rule") ":")))
+ (and (group symbol-start "rule")
+ (zero-or-more space)
+ ":")))
"Regexp matching a rule or subworkflow.")
(defconst snakemake-rule-or-subworkflow-line-re