comparison runtime/indent/falcon.vim @ 4186:7ffc704cb7c1

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Thu, 07 Mar 2013 13:20:54 +0100
parents 8b8ef1fed009
children a5352e73dc00
comparison
equal deleted inserted replaced
4185:651e484a8f48 4186:7ffc704cb7c1
3 " Maintainer: Steven Oliver <oliver.steven@gmail.com> 3 " Maintainer: Steven Oliver <oliver.steven@gmail.com>
4 " Website: https://steveno@github.com/steveno/falconpl-vim.git 4 " Website: https://steveno@github.com/steveno/falconpl-vim.git
5 " Credits: Thanks to the ruby.vim authors, I borrow a lot! 5 " Credits: Thanks to the ruby.vim authors, I borrow a lot!
6 " Previous Maintainer: Brent A. Fulgham <bfulgham@debian.org> 6 " Previous Maintainer: Brent A. Fulgham <bfulgham@debian.org>
7 " ----------------------------------------------------------- 7 " -----------------------------------------------------------
8 " GetLatestVimScripts: 2752 1 :AutoInstall: falcon.vim
9 8
10 "====================================== 9 "======================================
11 " SETUP 10 " SETUP
12 "====================================== 11 "======================================
13 12
130 endif 129 endif
131 130
132 " If previous line ends in a semi-colon reset indent to previous 131 " If previous line ends in a semi-colon reset indent to previous
133 " lines setting 132 " lines setting
134 if prevline =~? ';\s*$' && prevnonblank(prevline) =~? ',\s*$' 133 if prevline =~? ';\s*$' && prevnonblank(prevline) =~? ',\s*$'
135 return chg = chg - (2 * &sw) 134 let chg = chg - (2 * &sw)
136 endif 135 endif
137 136
138 " If previous line ended in a comma, indent again 137 " If previous line ended in a comma, indent again
139 if prevline =~? ',\s*$' 138 if prevline =~? ',\s*$'
140 let chg = chg + &sw 139 let chg = chg + &sw