1
0
mirror of https://github.com/amix/vimrc synced 2025-06-17 10:55:00 +08:00

Updated plugins

This commit is contained in:
Amir
2022-08-08 15:45:56 +02:00
parent b41536726f
commit 765adb9da3
216 changed files with 4784 additions and 2112 deletions

View File

@ -70,6 +70,10 @@ describe "Indenting" do
def foo(
bar
) = puts(bar)
# Reference: https://github.com/vim-ruby/vim-ruby/issues/450
def self.foo = puts(bar)
def bar.foo = puts(baz)
end
EOF
end

View File

@ -35,6 +35,19 @@ Vimrunner::RSpec.configure do |config|
expect(IO.read(filename)).to eq string
end
def assert_correct_indent_in_insert(extension='rb', content, input, result)
filename = "test.#{extension}"
IO.write filename, content
vim.edit filename
vim.normal 'Go'
vim.feedkeys input
vim.write
expect(IO.read(filename)).to eq result
end
def assert_correct_highlighting(extension='rb', string, patterns, group)
filename = "test.#{extension}"

View File

@ -33,4 +33,15 @@ describe "Syntax highlighting" do
def foo bar:; end
EOF
end
specify "endless def does not start a method region" do
assert_correct_highlighting <<~'EOF', 'end', ''
def foo = bar
end
EOF
assert_correct_highlighting <<~'EOF', 'end', ''
def foo (a, b) = bar
end
EOF
end
end