aboutsummaryrefslogtreecommitdiff
path: root/snakemake.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-04-16 17:03:07 -0400
committerKyle Meyer <kyle@kyleam.com>2016-04-16 17:03:07 -0400
commit5c9873c39222e8d54afc9e63d1148ae1a822fbda (patch)
treeff1d2f9490f534af45bd079321335a01cbd45d8f /snakemake.el
parent66f0d242fa063277713e723d83d051402ff12e1d (diff)
downloadsnakemake-mode-5c9873c39222e8d54afc9e63d1148ae1a822fbda.tar.gz
Support anonymous rule blocks
Diffstat (limited to 'snakemake.el')
-rw-r--r--snakemake.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/snakemake.el b/snakemake.el
index c3f5ec4..20ec2cd 100644
--- a/snakemake.el
+++ b/snakemake.el
@@ -299,7 +299,7 @@ currently limited to a single-item list."
(save-excursion
(end-of-line)
(re-search-backward snakemake-rule-or-subworkflow-re)
- (let ((rule (and (equal (match-string-no-properties 1) "rule")
+ (let ((rule (and (string= (match-string-no-properties 1) "rule")
(match-string-no-properties 2))))
(and (or (not targets-only) (snakemake-check-target rule))
(list rule))))))