]> git.lizzy.rs Git - rust.git/commit
Add another case where cindent is correct
authorBrandon Waskiewicz <brandon.waskiewicz@gmail.com>
Fri, 18 Apr 2014 18:12:50 +0000 (14:12 -0400)
committerBrandon Waskiewicz <brandon.waskiewicz@gmail.com>
Fri, 18 Apr 2014 18:12:50 +0000 (14:12 -0400)
commit59f3414a4a66a132648bd89ae697924304715bd3
treedd7a9ea0d5d1f5602ff851f5c8fb401c9d635a53
parentce2bab68d69ee04e17c0165dbdb7b583d5a7c991
Add another case where cindent is correct

When calling a function, or anything with nested parens,
default to cindent's indent. The least error-prone way I
could think of identifying this is to look for a line
that ends with a ',', as well as a non-zero number of
any character except parens before the comma, and
then an open paren.

This will overlap with the previous rule accounting for
function definitions, but that should be fine because
it is also using cindent.
src/etc/vim/indent/rust.vim