diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-04-01 21:21:01 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-04-01 21:21:01 +1100 |
| commit | bf170ec7f56ed2abb9cbd8ac9caacf1bed483662 (patch) | |
| tree | d04153fe2c65432305436e827319ef20c0a10b57 /test | |
| parent | e0013844f86d8578da2df0506eb99bcd46607487 (diff) | |
| parent | d8e4c6801f0fc6a76195d12f2d7690792bcd8e08 (diff) | |
Merge remote-tracking branch 'GrantMoyer/paren-in-literal'
Diffstat (limited to 'test')
| -rw-r--r-- | test/indent/c-family/paren-in-literal/cmd | 1 | ||||
| -rw-r--r-- | test/indent/c-family/paren-in-literal/in | 7 | ||||
| -rw-r--r-- | test/indent/c-family/paren-in-literal/out | 11 | ||||
| -rw-r--r-- | test/indent/c-family/paren-in-literal/rc | 3 |
4 files changed, 22 insertions, 0 deletions
diff --git a/test/indent/c-family/paren-in-literal/cmd b/test/indent/c-family/paren-in-literal/cmd new file mode 100644 index 00000000..8682d51e --- /dev/null +++ b/test/indent/c-family/paren-in-literal/cmd @@ -0,0 +1 @@ +c<ret>bar<esc> diff --git a/test/indent/c-family/paren-in-literal/in b/test/indent/c-family/paren-in-literal/in new file mode 100644 index 00000000..0ca7b63c --- /dev/null +++ b/test/indent/c-family/paren-in-literal/in @@ -0,0 +1,7 @@ +if(c == '(') {%( ) + +if(c == '(') {}%( ) + +if(s == "(") {%( ) + +if(s == "(" "foo") {%( ) diff --git a/test/indent/c-family/paren-in-literal/out b/test/indent/c-family/paren-in-literal/out new file mode 100644 index 00000000..293dc276 --- /dev/null +++ b/test/indent/c-family/paren-in-literal/out @@ -0,0 +1,11 @@ +if(c == '(') { + bar + +if(c == '(') {} +bar + +if(s == "(") { + bar + +if(s == "(" "foo") { + bar diff --git a/test/indent/c-family/paren-in-literal/rc b/test/indent/c-family/paren-in-literal/rc new file mode 100644 index 00000000..2c2a7247 --- /dev/null +++ b/test/indent/c-family/paren-in-literal/rc @@ -0,0 +1,3 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/filetype/c-family.kak" +set buffer filetype cpp |
