Add test for buggy ruby method newline
Currently, inserting a newline after a ruby method will incorrectly cause the following line to repeat the method header. This commit adds a test case to illustrate the bug.
This commit is contained in:
parent
8dc6981323
commit
27604359d4
|
@ -0,0 +1 @@
|
||||||
|
c<ret><esc>
|
3
test/indent/ruby/method-definition-shouldnt-duplicate/in
Normal file
3
test/indent/ruby/method-definition-shouldnt-duplicate/in
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
class Test
|
||||||
|
def test%( )
|
||||||
|
end
|
|
@ -0,0 +1,5 @@
|
||||||
|
class Test
|
||||||
|
def test
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
3
test/indent/ruby/method-definition-shouldnt-duplicate/rc
Normal file
3
test/indent/ruby/method-definition-shouldnt-duplicate/rc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
source "%val{runtime}/colors/default.kak"
|
||||||
|
source "%val{runtime}/rc/base/ruby.kak"
|
||||||
|
set buffer filetype ruby
|
Loading…
Reference in New Issue
Block a user