Changeset 16 for vim_script_tf/trunk


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

update vim script for tf: WHILE対応

Location:
vim_script_tf/trunk
Files:
1 deleted
2 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
  • vim_script_tf/trunk/syntax/tf.vim

    r13 r16  
    9393syn keyword tfMacro contained FOREACH
    9494syn keyword tfMacro contained JOINEACH
     95syn keyword tfMacro contained WHILE
     96syn keyword tfMacro contained JOINWHILE
    9597syn keyword tfMacro contained ERROR
    96 syn keyword tfMacro contained WORNING
     98syn keyword tfMacro contained WARNING
    9799syn match   tfMacro +\$END\$+hs=s+1,he=e-1
    98100syn match   tfMacro +\$ELSE\$+hs=s+1,he=e-1
Note: See TracChangeset for help on using the changeset viewer.