Changeset 24128
- Timestamp:
- 12/01/08 04:59:13 (5 weeks ago)
- Files:
-
- 1 modified
-
util/perl6.vim (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
util/perl6.vim
r24125 r24128 20 20 " * Add more support for folding 21 21 " * Add more syntax syncing hooks 22 " * Highlight various things in interpolated strings 22 23 23 24 " For version 5.x: Clear all syntax items … … 120 121 syn match p6Variable display "[$@%][!.*^?]\?[[:graph:]_¢]\w*" 121 122 122 " { ... } construct123 syn region p6InterpExpression124 \ matchgroup=p6Variable125 \ start="{"126 \ skip="\\}"127 \ end="}"128 \ contained129 \ contains=TOP130 131 syn cluster p6Interp132 \ add=p6Variable133 \ add=p6InterpExpression134 \ add=p6InterpClosure135 136 123 " FIXME: This ugly hack will show up later on. Once again, don't try to fix it. 137 124 syn region p6ParenExpression … … 157 144 \ contains=TOP 158 145 159 " Double-quoted, qq, qw, qx, `` strings 146 " { ... } closure in interpolated strings 147 syn region p6InterpClosure 148 \ matchgroup=p6StringSpecial 149 \ start="{" 150 \ end="}" 151 \ contained 152 \ contains=TOP 153 154 syn cluster p6Interp 155 \ add=p6Variable 156 \ add=p6InterpClosure 157 158 " Double-quoted strings 160 159 syn region p6InterpString 161 160 \ matchgroup=p6Quote … … 175 174 \ contains=@p6Interp 176 175 177 " Punctuation-delimited strings176 " Punctuation-delimited double-quoted strings 178 177 syn region p6InterpString 179 178 \ matchgroup=p6Quote … … 207 206 \ contains=@p6Interp 208 207 209 " Single-quoted, q, '' strings 208 syn match p6EscapedQuote display "\\'" contained 209 syn match p6EscapedArrow display "\\>" contained 210 211 " Single-quoted strings 210 212 syn region p6LiteralString 211 213 \ matchgroup=p6Quote … … 213 215 \ skip="\\'" 214 216 \ end="'" 217 \ contains=p6EscapedQuote 215 218 syn region p6LiteralString 216 219 \ matchgroup=p6Quote … … 218 221 \ skip="\\>" 219 222 \ end=">\@<!>" 223 \ contains=p6EscapedRightArrow 220 224 " special case for $<etc> 221 225 syn region p6LiteralString … … 224 228 \ end=">\@<!>" 225 229 226 " Punctuation-delimited s trings230 " Punctuation-delimited single-quoted strings 227 231 syn region p6LiteralString 228 232 \ matchgroup=p6Quote … … 466 470 \ contains=TOP 467 471 468 " This is in operator, not a regex472 " This is an operator, not a regex 469 473 syn match p6Operator "//" 470 474 … … 634 638 HiLink p6SubBracket p6String 635 639 HiLink p6TransNonBracket p6String 640 HiLink p6EscapedQuote p6StringSpecial 641 HiLink p6EscapedArrow p6StringSpecial 642 HiLink p6CharClass p6StringSpecial 643 HiLink p6RegexSpecial p6StringSpecial 636 644 637 645 HiLink p6Property Tag … … 662 670 HiLink p6RuleCall Identifier 663 671 HiLink p6Conditional Conditional 664 HiLink p6CharClass SpecialChar 665 HiLink p6RegexSpecial SpecialChar 672 HiLink p6StringSpecial SpecialChar 666 673 667 674 HiLink p6PodPara p6Pod
