summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-01-01 22:59:36 -0500
committerKyle Meyer <kyle@kyleam.com>2015-01-09 23:53:40 -0500
commite146047bd597cbfa7300bc1779ce044fb2de9469 (patch)
treebe52b892b1da3dedc77f7cb69cf7e12c861e0aa7
parentf87327d24465b3455ca000fce9798d45b1c84615 (diff)
downloadsnakemake-mode-e146047bd597cbfa7300bc1779ce044fb2de9469.tar.gz
snakemake-run-field-first-line-p: Simplify
-rw-r--r--snakemake-mode.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/snakemake-mode.el b/snakemake-mode.el
index 385be8d..ecb215f 100644
--- a/snakemake-mode.el
+++ b/snakemake-mode.el
@@ -186,8 +186,7 @@ rule blocks (or on a blank line directly below), call
(save-excursion
(forward-line -1)
(beginning-of-line)
- (and (re-search-forward "^[ \t]+run:" (point-at-eol) t)
- t)))
+ (looking-at-p "^[ \t]+run:")))
(defun snakemake-run-field-line-p ()
"Return t if point is on any line below a run field key.