diff options
| author | Maxim Baz <git@maximbaz.com> | 2018-06-28 23:43:00 +0200 |
|---|---|---|
| committer | Maxim Baz <git@maximbaz.com> | 2018-06-28 23:47:48 +0200 |
| commit | 5d689858df4d182a8ddf2188896ff23df81e2eb3 (patch) | |
| tree | 12e27c9895d031a3d34e74f75291f0681d7427d1 /test | |
| parent | 43b72770ec5ef15723b0ee5c1901a39e23039de8 (diff) | |
Improve comment-line command
Diffstat (limited to 'test')
12 files changed, 37 insertions, 0 deletions
diff --git a/test/indent/comment/comment-multiple-lines-indented/cmd b/test/indent/comment/comment-multiple-lines-indented/cmd new file mode 100644 index 00000000..fbad60f2 --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-indented/cmd @@ -0,0 +1 @@ +jXXX:comment-line<ret> diff --git a/test/indent/comment/comment-multiple-lines-indented/in b/test/indent/comment/comment-multiple-lines-indented/in new file mode 100644 index 00000000..d81dbd16 --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-indented/in @@ -0,0 +1,4 @@ +a: + b: 1 + + c: 2 diff --git a/test/indent/comment/comment-multiple-lines-indented/out b/test/indent/comment/comment-multiple-lines-indented/out new file mode 100644 index 00000000..46f89cd5 --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-indented/out @@ -0,0 +1,4 @@ +a: + # b: 1 + + # c: 2 diff --git a/test/indent/comment/comment-multiple-lines-indented/rc b/test/indent/comment/comment-multiple-lines-indented/rc new file mode 100644 index 00000000..4808655d --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-indented/rc @@ -0,0 +1,4 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/base/yaml.kak" +source "%val{runtime}/rc/core/comment.kak" +set buffer filetype yaml diff --git a/test/indent/comment/comment-multiple-lines-unindented/cmd b/test/indent/comment/comment-multiple-lines-unindented/cmd new file mode 100644 index 00000000..f67b66d6 --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-unindented/cmd @@ -0,0 +1 @@ +%:comment-line<ret> diff --git a/test/indent/comment/comment-multiple-lines-unindented/in b/test/indent/comment/comment-multiple-lines-unindented/in new file mode 100644 index 00000000..d81dbd16 --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-unindented/in @@ -0,0 +1,4 @@ +a: + b: 1 + + c: 2 diff --git a/test/indent/comment/comment-multiple-lines-unindented/out b/test/indent/comment/comment-multiple-lines-unindented/out new file mode 100644 index 00000000..9405433d --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-unindented/out @@ -0,0 +1,4 @@ +# a: +# b: 1 + +# c: 2 diff --git a/test/indent/comment/comment-multiple-lines-unindented/rc b/test/indent/comment/comment-multiple-lines-unindented/rc new file mode 100644 index 00000000..4808655d --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-unindented/rc @@ -0,0 +1,4 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/base/yaml.kak" +source "%val{runtime}/rc/core/comment.kak" +set buffer filetype yaml diff --git a/test/indent/comment/comment-multiple-lines-when-partially-commented/cmd b/test/indent/comment/comment-multiple-lines-when-partially-commented/cmd new file mode 100644 index 00000000..f67b66d6 --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-when-partially-commented/cmd @@ -0,0 +1 @@ +%:comment-line<ret> diff --git a/test/indent/comment/comment-multiple-lines-when-partially-commented/in b/test/indent/comment/comment-multiple-lines-when-partially-commented/in new file mode 100644 index 00000000..e048df42 --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-when-partially-commented/in @@ -0,0 +1,3 @@ +a: + # b: 1 + c: 2 diff --git a/test/indent/comment/comment-multiple-lines-when-partially-commented/out b/test/indent/comment/comment-multiple-lines-when-partially-commented/out new file mode 100644 index 00000000..f4bed302 --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-when-partially-commented/out @@ -0,0 +1,3 @@ +# a: +# # b: 1 +# c: 2 diff --git a/test/indent/comment/comment-multiple-lines-when-partially-commented/rc b/test/indent/comment/comment-multiple-lines-when-partially-commented/rc new file mode 100644 index 00000000..4808655d --- /dev/null +++ b/test/indent/comment/comment-multiple-lines-when-partially-commented/rc @@ -0,0 +1,4 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/base/yaml.kak" +source "%val{runtime}/rc/core/comment.kak" +set buffer filetype yaml |
