comparison runtime/indent/vim.vim @ 333:18f024844150 v7.0086

updated for version 7.0086
author vimboss
date Thu, 16 Jun 2005 21:59:56 +0000
parents 8c60f65311fa
children 339c55711247
comparison
equal deleted inserted replaced
332:d5e895294dce 333:18f024844150
1 " Vim indent file 1 " Vim indent file
2 " Language: Vim script 2 " Language: Vim script
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2005 Feb 25 4 " Last Change: 2005 Jun 16
5 5
6 " Only load this indent file when no other was loaded. 6 " Only load this indent file when no other was loaded.
7 if exists("b:did_indent") 7 if exists("b:did_indent")
8 finish 8 finish
9 endif 9 endif
49 elseif getline(lnum) =~ '^\s*aug\%[roup]' && getline(lnum) !~ '^\s*aug\%[roup]\s*!\=\s\+END' 49 elseif getline(lnum) =~ '^\s*aug\%[roup]' && getline(lnum) !~ '^\s*aug\%[roup]\s*!\=\s\+END'
50 let ind = ind + &sw 50 let ind = ind + &sw
51 endif 51 endif
52 52
53 " If the previous line contains an "end" after a pipe, but not in an ":au" 53 " If the previous line contains an "end" after a pipe, but not in an ":au"
54 " command. 54 " command. And not when there is a backslash before the pipe.
55 if getline(lnum) =~ '|\s*\(ene\@!\)' && getline(lnum) !~ '^\s*au\%[tocmd]' 55 if getline(lnum) =~ '[^\\]|\s*\(ene\@!\)' && getline(lnum) !~ '^\s*au\%[tocmd]'
56 let ind = ind - &sw 56 let ind = ind - &sw
57 endif 57 endif
58 58
59 59
60 " Subtract a 'shiftwidth' on a :endif, :endwhile, :catch, :finally, :endtry, 60 " Subtract a 'shiftwidth' on a :endif, :endwhile, :catch, :finally, :endtry,