Fix rust error when calling indent function

This commit is contained in:
Jiří Konečný 2015-08-02 12:59:49 +02:00
parent c61c89fac9
commit 36fea948b0

View File

@ -44,7 +44,7 @@ def -hidden _rust_filter_around_selections %{
} }
def -hidden _rust_indent_on_new_line %~ def -hidden _rust_indent_on_new_line %~
eval -draft -itersel %_ eval -draft -itersel %<
# preserve previous line indent # preserve previous line indent
try %{ exec -draft <space> K <a-&> } try %{ exec -draft <space> K <a-&> }
# filter previous line # filter previous line
@ -59,7 +59,7 @@ def -hidden _rust_indent_on_new_line %~
try %[ exec -draft k <a-x> <a-k> ^\h*(public|private|protected):\h*$ <ret> j <a-gt> ] try %[ exec -draft k <a-x> <a-k> ^\h*(public|private|protected):\h*$ <ret> j <a-gt> ]
# indent after if|else|while|for # indent after if|else|while|for
try %[ exec -draft <space> <a-F> ) M B <a-k> \`(if|else|while|for)\h*\(.*\)\h*\n\h*\n?\' <ret> s \`|.\' <ret> 1<a-&> 1<a-space> <a-gt> ] try %[ exec -draft <space> <a-F> ) M B <a-k> \`(if|else|while|for)\h*\(.*\)\h*\n\h*\n?\' <ret> s \`|.\' <ret> 1<a-&> 1<a-space> <a-gt> ]
_ >
~ ~
def -hidden _rust_indent_on_opening_curly_brace %[ def -hidden _rust_indent_on_opening_curly_brace %[