Ignore:
Timestamp:
Mar 13, 2012, 4:36:41 PM (12 years ago)
Author:
ertl-ishikawa
Message:

update vim script for tf: WHILE対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vim_script_tf/trunk/indent/tf.vim

    r13 r16  
    107107        " No indentation if the previous line didn't end with "\":
    108108        " (Could be annoying, but it lets you know if you made a mistake.)
    109         if line =~# '\$\(FOREACH\|JOINEACH\|IF\|ELIF\|FUNCTION\)[ ]'
     109        if line =~# '\$\(FOREACH\|JOINEACH\|IF\|ELIF\|FUNCTION\|WHILE\|JOINWHILE\)[ ]'
    110110        if line !~# '\$END\$'
    111111            let ind = ind + &sw
    112112        endif
    113         elseif line =~# '\$\(ERROR\|WORNING\)[ \$]'
     113        elseif line =~# '\$\(ERROR\|WARNING\)[ \$]'
    114114        if line !~# '\$END\$'
    115115            let ind = ind + &sw
     
    126126        let ind = ind - &sw
    127127
    128         if line =~# '\$\(FOREACH\|JOINEACH\|IF\|FUNCTION\)[ ]'
     128        if line =~# '\$\(FOREACH\|JOINEACH\|IF\|FUNCTION\|WHILE\|JOINWHILE\)[ ]'
    129129            let ind = ind + &sw
    130         elseif line =~# '\$\(ERROR\|WORNING\)[ \$]'
     130        elseif line =~# '\$\(ERROR\|WARNING\)[ \$]'
    131131            let ind = ind + &sw
    132132        endif
     
    134134        let ind = ind - &sw
    135135
    136         if line =~# '\$\(FOREACH\|JOINEACH\|IF\|FUNCTION\)[ ]'
     136        if line =~# '\$\(FOREACH\|JOINEACH\|IF\|FUNCTION\|WHILE\|JOINWHILE\)[ ]'
    137137            let ind = ind + &sw
    138         elseif line =~# '\$\(ERROR\|WORNING\)[ \$]'
     138        elseif line =~# '\$\(ERROR\|WARNING\)[ \$]'
    139139            let ind = ind + &sw
    140140        endif
Note: See TracChangeset for help on using the changeset viewer.