From 8a1b557b5f39a7c5166f9686e8ebea380619f8f2 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Fri, 29 Jun 2018 00:10:21 +0200 Subject: [PATCH] Add test to ensure whitespaces are preserved after uncomment --- test/indent/comment/uncomment-multiple-indented-lines/cmd | 1 + test/indent/comment/uncomment-multiple-indented-lines/in | 3 +++ test/indent/comment/uncomment-multiple-indented-lines/out | 3 +++ test/indent/comment/uncomment-multiple-indented-lines/rc | 4 ++++ 4 files changed, 11 insertions(+) create mode 100644 test/indent/comment/uncomment-multiple-indented-lines/cmd create mode 100644 test/indent/comment/uncomment-multiple-indented-lines/in create mode 100644 test/indent/comment/uncomment-multiple-indented-lines/out create mode 100644 test/indent/comment/uncomment-multiple-indented-lines/rc diff --git a/test/indent/comment/uncomment-multiple-indented-lines/cmd b/test/indent/comment/uncomment-multiple-indented-lines/cmd new file mode 100644 index 00000000..f67b66d6 --- /dev/null +++ b/test/indent/comment/uncomment-multiple-indented-lines/cmd @@ -0,0 +1 @@ +%:comment-line diff --git a/test/indent/comment/uncomment-multiple-indented-lines/in b/test/indent/comment/uncomment-multiple-indented-lines/in new file mode 100644 index 00000000..1bd4ba61 --- /dev/null +++ b/test/indent/comment/uncomment-multiple-indented-lines/in @@ -0,0 +1,3 @@ +# a: +# b: 1 +# c: 2 diff --git a/test/indent/comment/uncomment-multiple-indented-lines/out b/test/indent/comment/uncomment-multiple-indented-lines/out new file mode 100644 index 00000000..0969f779 --- /dev/null +++ b/test/indent/comment/uncomment-multiple-indented-lines/out @@ -0,0 +1,3 @@ +a: + b: 1 + c: 2 diff --git a/test/indent/comment/uncomment-multiple-indented-lines/rc b/test/indent/comment/uncomment-multiple-indented-lines/rc new file mode 100644 index 00000000..4808655d --- /dev/null +++ b/test/indent/comment/uncomment-multiple-indented-lines/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