Changeset 17699 for util

Show
Ignore:
Timestamp:
09/06/07 18:59:52 (15 months ago)
Author:
moritz
Message:

vim syntax file: added 'orelse', 'andthen'

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/perl6.vim

    r17551 r17699  
    3636syn keyword p6KeyFlow       if else elsif unless   
    3737syn keyword p6KeyFlow       for foreach loop while until when next last redo 
    38 syn keyword p6KeyFlow       given not or and err xor return default 
     38syn keyword p6KeyFlow       given not or and andthen orelse xor return default 
    3939syn keyword p6KeyFlow       exit 
    4040syn keyword p6ClosureTrait  BEGIN CHECK INIT START FIRST ENTER LEAVE KEEP UNDO NEXT LAST 
     
    163163" rule { } 
    164164syn region p6Regex start="rule\(\_s\+\w\+\)\{0,1}\_s*{"hs=e end="}" contains=@p6Regexen 
     165"syn region p6Regex start="\(rule\|token\|regex\)\(\_s\+\w\+\)\{0,1}\_s*{"hs=e end="}" contains=@p6Regexen 
    165166 
    166167" Closure (FIXME: Really icky hack, also doesn't support :blah modifiers) 
     
    169170" miniscule tweaking to complete redesign.  This is the only way I've found! 
    170171syn region p6Closure start="\(\(rule\(\_s\+\w\+\)\{0,1}\|s\|rx\)\_s*\)\@<!{" end="}" matchgroup=p6Error end="[\])]"  contains=TOP   fold 
     172"syn region p6Closure start="\(\(\(rule\|token\|regex\)\(\_s\+\w\+\)\{0,1}\|s\|rx\)\_s*\)\@<!{" end="}" matchgroup=p6Error end="[\])]"  contains=TOP   fold 
    171173 
    172174 
     
    202204syn match p6RegexSpecial contained ":=" 
    203205syn region p6CharClass   contained start=+<\s*!\{0,1}\s*\z(['"]\)+ skip=+\\\z1+ end=+\z1\s*>+ 
    204 syn region p6TestExpr contained start="<\s*!\{0,1}\s*(" end=")\s*>" contains=TOP 
     206"syn region p6TestExpr contained start="<\s*!\{0,1}\s*(" end=")\s*>" contains=TOP 
     207syn region p6TestExpr contained start="<\(?\|!\)?{" end="}\s*>" contains=TOP 
    205208 
    206209