diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-01-01 22:59:36 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-01-09 23:53:40 -0500 |
commit | e146047bd597cbfa7300bc1779ce044fb2de9469 (patch) | |
tree | be52b892b1da3dedc77f7cb69cf7e12c861e0aa7 /snakemake-mode.el | |
parent | f87327d24465b3455ca000fce9798d45b1c84615 (diff) | |
download | snakemake-mode-e146047bd597cbfa7300bc1779ce044fb2de9469.tar.gz |
snakemake-run-field-first-line-p: Simplify
Diffstat (limited to 'snakemake-mode.el')
-rw-r--r-- | snakemake-mode.el | 3 |
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. |