From 78530b82bea5788e74d425b8d206090e8a497ef8 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 25 Oct 2017 09:26:14 +0800 Subject: [PATCH] Add an indentation test for braces after if --- test/indent/c-family/indent-if-brace/cmd | 1 + test/indent/c-family/indent-if-brace/in | 1 + test/indent/c-family/indent-if-brace/out | 3 +++ test/indent/c-family/indent-if-brace/rc | 3 +++ test/indent/c-family/indent-if-brace/state | 1 + 5 files changed, 9 insertions(+) create mode 100644 test/indent/c-family/indent-if-brace/cmd create mode 100644 test/indent/c-family/indent-if-brace/in create mode 100644 test/indent/c-family/indent-if-brace/out create mode 100644 test/indent/c-family/indent-if-brace/rc create mode 100644 test/indent/c-family/indent-if-brace/state diff --git a/test/indent/c-family/indent-if-brace/cmd b/test/indent/c-family/indent-if-brace/cmd new file mode 100644 index 00000000..6b9f1f98 --- /dev/null +++ b/test/indent/c-family/indent-if-brace/cmd @@ -0,0 +1 @@ +c{foo diff --git a/test/indent/c-family/indent-if-brace/in b/test/indent/c-family/indent-if-brace/in new file mode 100644 index 00000000..1b99552b --- /dev/null +++ b/test/indent/c-family/indent-if-brace/in @@ -0,0 +1 @@ +if (int i = bar())%( ) diff --git a/test/indent/c-family/indent-if-brace/out b/test/indent/c-family/indent-if-brace/out new file mode 100644 index 00000000..c5e3e8f3 --- /dev/null +++ b/test/indent/c-family/indent-if-brace/out @@ -0,0 +1,3 @@ +if (int i = bar()) +{ + foo diff --git a/test/indent/c-family/indent-if-brace/rc b/test/indent/c-family/indent-if-brace/rc new file mode 100644 index 00000000..53c40654 --- /dev/null +++ b/test/indent/c-family/indent-if-brace/rc @@ -0,0 +1,3 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/core/c-family.kak" +set buffer filetype cpp diff --git a/test/indent/c-family/indent-if-brace/state b/test/indent/c-family/indent-if-brace/state new file mode 100644 index 00000000..9c868b6b --- /dev/null +++ b/test/indent/c-family/indent-if-brace/state @@ -0,0 +1 @@ +3.7,3.7