Changeset 2148

Show
Ignore:
Timestamp:
07/01/08 06:53:26 (3 months ago)
Author:
jon
Message:

[vim] add try/catch and throw keyword

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Vim/syntax/fortress.vim

    r2118 r2148  
    3333syn keyword  fortressOperator println 
    3434 
    35 syn keyword  fortressKeyword opr for private asif 
     35syn keyword  fortressKeyword opr for private asif throw 
    3636 
    3737syn match    fortressThenErr    "\<then\>" 
    3838syn match    fortressCaseErr    "\<case\>" 
     39syn match    fortressCatchErr    "\<catch\>" 
    3940syn match    fortressTypecaseErr    "\<of\>" 
    4041 
     
    4849syn region   fortressNone matchgroup=fortressKeyword start="\<typecase\>" matchgroup=fortressKeyword end="\<of\>" contains=ALLBUT,fortressTypecaseErr nextgroup=fortressTypecase 
    4950syn region   fortressTypecase matchgroup=fortressKeyword start="\<of\>" matchgroup=fortressKeyword end="\<end\>" contains=ALLBUT,fortressEndErr 
     51 
     52syn region   fortressNone matchgroup=fortressKeyword start="\<try\>" matchgroup=fortressKeyword end="\<catch\>" contains=ALLBUT,fortressCatchErr nextgroup=fortressCatch 
     53syn region   fortressCatch matchgroup=fortressKeyword start="\<catch\>" matchgroup=fortressKeyword end="\<end\>" contains=ALLBUT,fortressEndErr 
    5054 
    5155syn region   fortressNone matchgroup=fortressKeyword start="\<do\>" matchgroup=fortressKeyword end="\<end\>" contains=ALLBUT,fortressEndErr