1
0
mirror of https://github.com/amix/vimrc synced 2025-07-07 00:15:00 +08:00

Update some plugins.

This commit is contained in:
Kurtis Moxley
2022-08-08 16:41:37 +08:00
parent f6ba361e3e
commit bbbedb5311
15 changed files with 204 additions and 79 deletions

View File

@ -92,7 +92,7 @@ let s:ruby_indent_keywords =
\ '\<\%(if\|for\|while\|until\|case\|unless\|begin\):\@!\>'
" Def without an end clause: def method_call(...) = <expression>
let s:ruby_endless_def = '\<def\s\+\k\+[!?]\=\%((.*)\|\s\)\s*='
let s:ruby_endless_def = '\<def\s\+\%(\k\+\.\)\=\k\+[!?]\=\%((.*)\|\s\)\s*='
" Regex used for words that, at the start of a line, remove a level of indent.
let s:ruby_deindent_keywords =

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