Update elixir, perl and rust
This commit is contained in:
parent
94f72a68c3
commit
95bc6710a4
@ -59,6 +59,10 @@ function! GetElixirIndent()
|
|||||||
|
|
||||||
let ind += opened_symbol * &sw
|
let ind += opened_symbol * &sw
|
||||||
|
|
||||||
|
if current_line =~ '^\s*\(\]\|}\)'
|
||||||
|
let ind -= &sw
|
||||||
|
endif
|
||||||
|
|
||||||
if last_line =~ s:indent_keywords
|
if last_line =~ s:indent_keywords
|
||||||
let ind += &sw
|
let ind += &sw
|
||||||
endif
|
endif
|
||||||
|
@ -410,7 +410,7 @@ if exists("perl_fold")
|
|||||||
endif
|
endif
|
||||||
if !exists("perl_nofold_subs")
|
if !exists("perl_nofold_subs")
|
||||||
if exists("perl_fold_anonymous_subs") && perl_fold_anonymous_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
|
syn region perlSubFold start="\<\%(BEGIN\|END\|CHECK\|INIT\)\>\s*{" end="}" transparent fold keepend
|
||||||
else
|
else
|
||||||
syn region perlSubFold start="^\z(\s*\)\<sub\>.*[^};]$" end="^\z1}\s*\%(#.*\)\=$" transparent fold keepend
|
syn region perlSubFold start="^\z(\s*\)\<sub\>.*[^};]$" end="^\z1}\s*\%(#.*\)\=$" transparent fold keepend
|
||||||
|
@ -96,7 +96,7 @@ syn keyword rustTrait MutableVector MutableTotalOrdVector
|
|||||||
syn keyword rustTrait Vector VectorVector CloneableVector ImmutableVector
|
syn keyword rustTrait Vector VectorVector CloneableVector ImmutableVector
|
||||||
|
|
||||||
"syn keyword rustFunction stream
|
"syn keyword rustFunction stream
|
||||||
syn keyword rustTrait Port Chan
|
syn keyword rustTrait Sender Receiver
|
||||||
"syn keyword rustFunction spawn
|
"syn keyword rustFunction spawn
|
||||||
|
|
||||||
syn keyword rustSelf self
|
syn keyword rustSelf self
|
||||||
|
Loading…
Reference in New Issue
Block a user