Context Navigation


Changeset 13


Ignore:
Timestamp:
Jul 28, 2011, 5:31:42 PM (14 years ago)
Author:
ertl-ishikawa
Message:

ELIFに関するルールを追加

Location:
vim_script_tf/trunk
Files:
2 edited

Legend:

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

    r10 r13
    6363setlocal indentexpr=GetTFIndent()
    6464setlocal indentkeys-=0{,0} indentkeys-=0# indentkeys-=:
    65setlocal indentkeys+==\$ELSE\,ドル=\$E(削除) (削除ここまで)ND\,0ドル;
    65setlocal indentkeys+==\$ELSE\,ドル=\$E(追記) LIF\,ドル=\$E (追記ここまで)ND\,0ドル;
    6666
    6767" Only define the function once:
    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\|(削除) (削除ここまで)FUNCTION\)[ ]'
    109 if line =~# '\$\(FOREACH\|JOINEACH\|IF\|(追記) ELIF\| (追記ここまで)FUNCTION\)[ ]'
    110110 if line !~# '\$END\$'
    111111 let ind = ind + &sw
    131131 let ind = ind + &sw
    132132 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 (追記ここまで)
    133141 endif
    134142
  • vim_script_tf/trunk/syntax/tf.vim

    r11 r13
    9090syn keyword tfMacro contained INCLUDE
    9191syn keyword tfMacro contained IF
    92(追記) syn keyword tfMacro contained ELIF (追記ここまで)
    9293syn keyword tfMacro contained FOREACH
    9394syn keyword tfMacro contained JOINEACH
Note: See TracChangeset for help on using the changeset viewer.

AltStyle によって変換されたページ (->オリジナル) /