From 5c9873c39222e8d54afc9e63d1148ae1a822fbda Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 16 Apr 2016 17:03:07 -0400 Subject: Support anonymous rule blocks --- snakemake.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'snakemake.el') 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)))))) -- cgit v1.2.3