mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-26 04:52:53 +03:00
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