diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-04-14 12:47:42 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-04-14 12:47:42 +1000 |
| commit | 567c82840a907d0baa831c352666bb80bca0cbfc (patch) | |
| tree | a7a9938c0ff611e42e646fe812f66c060602a667 /test/indent/ruby | |
| parent | d5d54889bb2d59f552c0241dd2385c65f6342f75 (diff) | |
ruby.kak: Refactor end autoinsertion logic to be more robust
Fixes the bug described by PR #1994
Diffstat (limited to 'test/indent/ruby')
4 files changed, 14 insertions, 0 deletions
diff --git a/test/indent/ruby/following-blocks-should-not-prevent-end/cmd b/test/indent/ruby/following-blocks-should-not-prevent-end/cmd new file mode 100644 index 00000000..76003030 --- /dev/null +++ b/test/indent/ruby/following-blocks-should-not-prevent-end/cmd @@ -0,0 +1 @@ +c<ret><esc> diff --git a/test/indent/ruby/following-blocks-should-not-prevent-end/in b/test/indent/ruby/following-blocks-should-not-prevent-end/in new file mode 100644 index 00000000..cc2f1dc5 --- /dev/null +++ b/test/indent/ruby/following-blocks-should-not-prevent-end/in @@ -0,0 +1,4 @@ +def foo%( ) + +def bar +end diff --git a/test/indent/ruby/following-blocks-should-not-prevent-end/out b/test/indent/ruby/following-blocks-should-not-prevent-end/out new file mode 100644 index 00000000..53db17a8 --- /dev/null +++ b/test/indent/ruby/following-blocks-should-not-prevent-end/out @@ -0,0 +1,6 @@ +def foo + +end + +def bar +end diff --git a/test/indent/ruby/following-blocks-should-not-prevent-end/rc b/test/indent/ruby/following-blocks-should-not-prevent-end/rc new file mode 100644 index 00000000..d4fadeea --- /dev/null +++ b/test/indent/ruby/following-blocks-should-not-prevent-end/rc @@ -0,0 +1,3 @@ +source "%val{runtime}/colors/default.kak" +source "%val{runtime}/rc/base/ruby.kak" +set buffer filetype ruby |
