summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-05-25 01:22:33 -0400
committerKyle Meyer <kyle@kyleam.com>2016-05-25 01:22:33 -0400
commit1d7abd74b5ccb2e1117d0a21fc26d2727610ba30 (patch)
treebc75d533725a6121b01d0ec617fef52ea7f88b0d
parent9ed551af664fc0ffc7346db5308328524457de0a (diff)
downloadsnakemake-mode-1d7abd74b5ccb2e1117d0a21fc26d2727610ba30.tar.gz
snakemake-rule-or-subworkflow-re: Simplify
-rw-r--r--snakemake-mode.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/snakemake-mode.el b/snakemake-mode.el
index 512b103..4272f26 100644
--- a/snakemake-mode.el
+++ b/snakemake-mode.el
@@ -78,12 +78,10 @@
(zero-or-more space)
(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")
- (zero-or-more space)
- ":")))
+ (group (one-or-more (or (syntax word) (syntax symbol)))) )
+ (group symbol-start "rule"))
+ (zero-or-more space)
+ ":")
"Regexp matching a rule or subworkflow.")
(defconst snakemake-toplevel-command-re