Update elixir, perl and rust

This commit is contained in:
Adam Stankiewicz 2014-03-16 14:48:30 +01:00
parent 94f72a68c3
commit 95bc6710a4
3 changed files with 6 additions and 2 deletions

View File

@ -59,6 +59,10 @@ function! GetElixirIndent()
let ind += opened_symbol * &sw
if current_line =~ '^\s*\(\]\|}\)'
let ind -= &sw
endif
if last_line =~ s:indent_keywords
let ind += &sw
endif

View File

@ -410,7 +410,7 @@ if exists("perl_fold")
endif
if !exists("perl_nofold_subs")
if exists("perl_fold_anonymous_subs") && perl_fold_anonymous_subs
syn region perlSubFold start="\<sub\>[^\n;]*{" end="}" transparent fold keepend extend
syn region perlSubFold start="\<sub\>[^;]*{" end="}" transparent fold keepend extend
syn region perlSubFold start="\<\%(BEGIN\|END\|CHECK\|INIT\)\>\s*{" end="}" transparent fold keepend
else
syn region perlSubFold start="^\z(\s*\)\<sub\>.*[^};]$" end="^\z1}\s*\%(#.*\)\=$" transparent fold keepend

View File

@ -96,7 +96,7 @@ syn keyword rustTrait MutableVector MutableTotalOrdVector
syn keyword rustTrait Vector VectorVector CloneableVector ImmutableVector
"syn keyword rustFunction stream
syn keyword rustTrait Port Chan
syn keyword rustTrait Sender Receiver
"syn keyword rustFunction spawn
syn keyword rustSelf self