mirror of
https://github.com/amix/vimrc
synced 2025-07-07 00:15:00 +08:00
Update some plugins.
This commit is contained in:
@ -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 =
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user