From 9ed551af664fc0ffc7346db5308328524457de0a Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Tue, 24 May 2016 23:56:42 -0400 Subject: indentation: Account for trailing comments --- snakemake-test.el | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'snakemake-test.el') diff --git a/snakemake-test.el b/snakemake-test.el index 80850d7..f70b284 100644 --- a/snakemake-test.el +++ b/snakemake-test.el @@ -393,6 +393,19 @@ rule abc: (should (string= " +rule abc: + output: # comment + " + (snakemake-with-temp-text + " +rule abc: + output: # comment + " + (snakemake-indent-line) + (buffer-string)))) + (should + (string= + " rule abc: output: 'file{}{}'.format('one', @@ -501,6 +514,21 @@ rule abc: (should (string= " +rule abc: + output: # comment + 'file' + 'text'" + (snakemake-with-temp-text + " +rule abc: + output: # comment + 'file' + 'text'" + (snakemake-indent-line) + (buffer-string)))) + (should + (string= + " rule abc: run: with this: -- cgit v1.2.3