Changeset 13
- Timestamp:
- Jul 28, 2011, 5:31:42 PM (12 years ago)
- Location:
- vim_script_tf/trunk
- Files:
-
- 2 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 -
vim_script_tf/trunk/syntax/tf.vim
r11 r13 90 90 syn keyword tfMacro contained INCLUDE 91 91 syn keyword tfMacro contained IF 92 syn keyword tfMacro contained ELIF 92 93 syn keyword tfMacro contained FOREACH 93 94 syn keyword tfMacro contained JOINEACH
Note:
See TracChangeset
for help on using the changeset viewer.