From 25a0fe8f58ffba5132dd454fc85ebed21ba5a06d Mon Sep 17 00:00:00 2001 From: Hugo Musso Gualandi Date: Sun, 26 Sep 2021 11:54:02 -0300 Subject: [PATCH] lua.kak: Add test cases for unindent --- test/indent/lua/unindent-after-end/cmd | 1 + test/indent/lua/unindent-after-end/in | 7 +++++++ test/indent/lua/unindent-after-end/out | 7 +++++++ test/indent/lua/unindent-after-end/rc | 3 +++ 4 files changed, 18 insertions(+) create mode 100644 test/indent/lua/unindent-after-end/cmd create mode 100644 test/indent/lua/unindent-after-end/in create mode 100644 test/indent/lua/unindent-after-end/out create mode 100644 test/indent/lua/unindent-after-end/rc diff --git a/test/indent/lua/unindent-after-end/cmd b/test/indent/lua/unindent-after-end/cmd new file mode 100644 index 00000000..d9f644bd --- /dev/null +++ b/test/indent/lua/unindent-after-end/cmd @@ -0,0 +1 @@ +cend diff --git a/test/indent/lua/unindent-after-end/in b/test/indent/lua/unindent-after-end/in new file mode 100644 index 00000000..af777973 --- /dev/null +++ b/test/indent/lua/unindent-after-end/in @@ -0,0 +1,7 @@ +if A then + %( ) + +if A then + while B then + end + %( ) diff --git a/test/indent/lua/unindent-after-end/out b/test/indent/lua/unindent-after-end/out new file mode 100644 index 00000000..2446b3ba --- /dev/null +++ b/test/indent/lua/unindent-after-end/out @@ -0,0 +1,7 @@ +if A then +end + +if A then + while B then + end +end diff --git a/test/indent/lua/unindent-after-end/rc b/test/indent/lua/unindent-after-end/rc new file mode 100644 index 00000000..b5cf999d --- /dev/null +++ b/test/indent/lua/unindent-after-end/rc @@ -0,0 +1,3 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/filetype/lua.kak" +set buffer filetype lua