diff options
author | Kyle Meyer <kyle@kyleam.com> | 2016-05-24 23:56:42 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2016-05-24 23:56:42 -0400 |
commit | 9ed551af664fc0ffc7346db5308328524457de0a (patch) | |
tree | a32e3812d78ba08f8a89b098dd465d0f034e785c /snakemake-test.el | |
parent | 2e71246aa406b2d51441a961ec468833656b6798 (diff) | |
download | snakemake-mode-9ed551af664fc0ffc7346db5308328524457de0a.tar.gz |
indentation: Account for trailing comments
Diffstat (limited to 'snakemake-test.el')
-rw-r--r-- | snakemake-test.el | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/snakemake-test.el b/snakemake-test.el index 80850d7..f70b284 100644 --- a/snakemake-test.el +++ b/snakemake-test.el @@ -394,6 +394,19 @@ rule abc: (string= " rule abc: + output: # comment + " + (snakemake-with-temp-text + " +rule abc: + output: # comment + <point>" + (snakemake-indent-line) + (buffer-string)))) + (should + (string= + " +rule abc: output: 'file{}{}'.format('one', 'two'" @@ -502,6 +515,21 @@ rule abc: (string= " rule abc: + output: # comment + 'file' + 'text'" + (snakemake-with-temp-text + " +rule abc: + output: # comment + 'file' +<point> 'text'" + (snakemake-indent-line) + (buffer-string)))) + (should + (string= + " +rule abc: run: with this: " |