1
0
Derivar 0

Merge pull request #391 from TylerHorth/ignore-rust-self

Ignore rust self argument when completing methods
Este cometimento está contido em:
Shougo 2017-06-24 15:37:12 +09:00 cometido por GitHub
ascendente af6e74863a 19ecfee78c
cometimento 7cfb9aa4a4
1 ficheiros modificados com 3 adições e 1 eliminações

Ver ficheiro

@ -357,7 +357,9 @@ function! neosnippet#parser#_get_completed_snippet(completed_item, cur_text, nex
\ neosnippet#parser#_get_in_paren(key, pair, abbr),
\ key.'\zs.\{-}\ze'.pair . '\|<\zs.\{-}\ze>', '', 'g'),
\ '[^[]\zs\s*,\s*')
if key ==# '(' && arg ==# 'self' && &filetype ==# 'python'
if key ==# '(' && (
\ (&filetype ==# 'python' && arg ==# 'self') ||
\ (&filetype ==# 'rust' && arg =~# '\m^&\?\(mut \)\?self$'))
" Ignore self argument
continue
endif