- Timestamp:
- 09/06/07 18:59:52 (15 months ago)
- Files:
-
- 1 modified
-
util/perl6.vim (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
util/perl6.vim
r17551 r17699 36 36 syn keyword p6KeyFlow if else elsif unless 37 37 syn keyword p6KeyFlow for foreach loop while until when next last redo 38 syn keyword p6KeyFlow given not or and errxor return default38 syn keyword p6KeyFlow given not or and andthen orelse xor return default 39 39 syn keyword p6KeyFlow exit 40 40 syn keyword p6ClosureTrait BEGIN CHECK INIT START FIRST ENTER LEAVE KEEP UNDO NEXT LAST … … 163 163 " rule { } 164 164 syn 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 165 166 166 167 " Closure (FIXME: Really icky hack, also doesn't support :blah modifiers) … … 169 170 " miniscule tweaking to complete redesign. This is the only way I've found! 170 171 syn 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 171 173 172 174 … … 202 204 syn match p6RegexSpecial contained ":=" 203 205 syn 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 207 syn region p6TestExpr contained start="<\(?\|!\)?{" end="}\s*>" contains=TOP 205 208 206 209
