Changeset 24129

Show
Ignore:
Timestamp:
12/01/08 22:46:41 (5 weeks ago)
Author:
hinrik
Message:

[util/perl6.vim] more comments

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • util/perl6.vim

    r24128 r24129  
    2020"   * Add more support for folding 
    2121"   * Add more syntax syncing hooks 
    22 "   * Highlight various things in interpolated strings 
     22"   * Overhaul Q// and its derivatives 
     23"   * Overhaul regexes 
    2324 
    2425" For version 5.x: Clear all syntax items 
     
    152153    \ contains=TOP 
    153154 
     155" Interpolated strings 
     156 
    154157syn cluster p6Interp 
    155158    \ add=p6Variable 
    156159    \ add=p6InterpClosure 
    157160 
    158 " Double-quoted strings 
     161" "string" 
    159162syn region p6InterpString 
    160163    \ matchgroup=p6Quote 
     
    163166    \ end=+"+ 
    164167    \ contains=@p6Interp 
     168" «string» 
    165169syn region p6InterpString 
    166170    \ matchgroup=p6Quote 
     
    168172    \ end="»" 
    169173    \ contains=@p6Interp 
     174" <<string>> 
    170175syn region p6InterpString 
    171176    \ matchgroup=p6Quote 
     
    174179    \ contains=@p6Interp 
    175180 
    176 " Punctuation-delimited double-quoted strings 
     181" Punctuation-delimited interpolated strings 
    177182syn region p6InterpString 
    178183    \ matchgroup=p6Quote 
     
    206211    \ contains=@p6Interp 
    207212 
     213" Literal strings 
     214 
    208215syn match p6EscapedQuote display "\\'" contained 
    209216syn match p6EscapedArrow display "\\>" contained 
    210217 
    211 " Single-quoted strings 
     218" 'string' 
    212219syn region p6LiteralString 
    213220    \ matchgroup=p6Quote 
     
    216223    \ end="'" 
    217224    \ contains=p6EscapedQuote 
     225" <string> 
    218226syn region p6LiteralString 
    219227    \ matchgroup=p6Quote 
     
    222230    \ end=">\@<!>" 
    223231    \ contains=p6EscapedRightArrow 
    224 " special case for $<etc> 
     232" $<rule> 
    225233syn region p6LiteralString 
    226234    \ matchgroup=p6Quote 
     
    228236    \ end=">\@<!>" 
    229237 
    230 " Punctuation-delimited single-quoted strings 
     238" Punctuation-delimited literal strings 
    231239syn region p6LiteralString 
    232240    \ matchgroup=p6Quote 
     
    269277syn match p6Operator display "\s\zs<=>" 
    270278 
    271 " =<> is not a quote 
     279" =<> is an operator, not a quote 
    272280syn region p6Iterate 
    273281    \ matchgroup=p6Operator 
    274     \ start="=<" 
     282    \ start="=<<\@!" 
    275283    \ end=">" 
    276284    \ oneline 
     
    281289syn match p6LiteralString display ":\@<=\w\+" 
    282290 
    283 " Sexeger! 
     291" Regexes 
     292 
    284293syn cluster p6Regexen 
    285294    \ add=@p6Interp 
     
    291300    \ add=p6RegexSpecial 
    292301 
    293 " Here's how we get into regex mode 
    294302" Standard /.../ 
    295303syn region p6Regex