summaryrefslogtreecommitdiff
path: root/snakemake-test.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-02-28 12:28:05 -0500
committerKyle Meyer <kyle@kyleam.com>2016-02-28 12:29:51 -0500
commitc44f74a155d27cb558e488513dbf21fccce5a6a3 (patch)
tree29827ed76f17045c7196c910c4fc138a141d51ee /snakemake-test.el
parentddf1ba288005848d64cf97354db5a67598b4a029 (diff)
downloadsnakemake-mode-c44f74a155d27cb558e488513dbf21fccce5a6a3.tar.gz
Fix rule recognition at beginning of buffer
Diffstat (limited to 'snakemake-test.el')
-rw-r--r--snakemake-test.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/snakemake-test.el b/snakemake-test.el
index 880d7d5..8ebb3ff 100644
--- a/snakemake-test.el
+++ b/snakemake-test.el
@@ -522,6 +522,13 @@ rule abc:
output: 'file'"
(should-not (snakemake-in-rule-or-subworkflow-block-p)))
+ ;; At beginning of buffer
+ (snakemake-with-temp-text
+ "\
+rule abc:
+ output: 'file'<point>"
+ (should (snakemake-in-rule-or-subworkflow-block-p)))
+
;; Subworkflow
(snakemake-with-temp-text
"