Changeset 13 for vim_script_tf/trunk/indent
- Timestamp:
- Jul 28, 2011, 5:31:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vim_script_tf/trunk/indent/tf.vim
r10 r13 63 63 setlocal indentexpr=GetTFIndent() 64 64 setlocal indentkeys-=0{,0} indentkeys-=0# indentkeys-=: 65 setlocal indentkeys+==\$ELSE\$,=\$E ND\$,0;65 setlocal indentkeys+==\$ELSE\$,=\$ELIF\$,=\$END\$,0; 66 66 67 67 " Only define the function once: … … 107 107 " No indentation if the previous line didn't end with "\": 108 108 " (Could be annoying, but it lets you know if you made a mistake.) 109 if line =~# '\$\(FOREACH\|JOINEACH\|IF\| FUNCTION\)[ ]'109 if line =~# '\$\(FOREACH\|JOINEACH\|IF\|ELIF\|FUNCTION\)[ ]' 110 110 if line !~# '\$END\$' 111 111 let ind = ind + &sw … … 131 131 let ind = ind + &sw 132 132 endif 133 elseif line =~# '\$ELIF[ ]' 134 let ind = ind - &sw 135 136 if line =~# '\$\(FOREACH\|JOINEACH\|IF\|FUNCTION\)[ ]' 137 let ind = ind + &sw 138 elseif line =~# '\$\(ERROR\|WORNING\)[ \$]' 139 let ind = ind + &sw 140 endif 133 141 endif 134 142
Note:
See TracChangeset
for help on using the changeset viewer.