Changeset 24129
- Timestamp:
- 12/01/08 22:46:41 (5 weeks ago)
- Files:
-
- 1 modified
-
util/perl6.vim (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
util/perl6.vim
r24128 r24129 20 20 " * Add more support for folding 21 21 " * Add more syntax syncing hooks 22 " * Highlight various things in interpolated strings 22 " * Overhaul Q// and its derivatives 23 " * Overhaul regexes 23 24 24 25 " For version 5.x: Clear all syntax items … … 152 153 \ contains=TOP 153 154 155 " Interpolated strings 156 154 157 syn cluster p6Interp 155 158 \ add=p6Variable 156 159 \ add=p6InterpClosure 157 160 158 " Double-quoted strings161 " "string" 159 162 syn region p6InterpString 160 163 \ matchgroup=p6Quote … … 163 166 \ end=+"+ 164 167 \ contains=@p6Interp 168 " «string» 165 169 syn region p6InterpString 166 170 \ matchgroup=p6Quote … … 168 172 \ end="»" 169 173 \ contains=@p6Interp 174 " <<string>> 170 175 syn region p6InterpString 171 176 \ matchgroup=p6Quote … … 174 179 \ contains=@p6Interp 175 180 176 " Punctuation-delimited double-quoted strings181 " Punctuation-delimited interpolated strings 177 182 syn region p6InterpString 178 183 \ matchgroup=p6Quote … … 206 211 \ contains=@p6Interp 207 212 213 " Literal strings 214 208 215 syn match p6EscapedQuote display "\\'" contained 209 216 syn match p6EscapedArrow display "\\>" contained 210 217 211 " Single-quoted strings218 " 'string' 212 219 syn region p6LiteralString 213 220 \ matchgroup=p6Quote … … 216 223 \ end="'" 217 224 \ contains=p6EscapedQuote 225 " <string> 218 226 syn region p6LiteralString 219 227 \ matchgroup=p6Quote … … 222 230 \ end=">\@<!>" 223 231 \ contains=p6EscapedRightArrow 224 " special case for $<etc>232 " $<rule> 225 233 syn region p6LiteralString 226 234 \ matchgroup=p6Quote … … 228 236 \ end=">\@<!>" 229 237 230 " Punctuation-delimited single-quotedstrings238 " Punctuation-delimited literal strings 231 239 syn region p6LiteralString 232 240 \ matchgroup=p6Quote … … 269 277 syn match p6Operator display "\s\zs<=>" 270 278 271 " =<> is not a quote279 " =<> is an operator, not a quote 272 280 syn region p6Iterate 273 281 \ matchgroup=p6Operator 274 \ start="=< "282 \ start="=<<\@!" 275 283 \ end=">" 276 284 \ oneline … … 281 289 syn match p6LiteralString display ":\@<=\w\+" 282 290 283 " Sexeger! 291 " Regexes 292 284 293 syn cluster p6Regexen 285 294 \ add=@p6Interp … … 291 300 \ add=p6RegexSpecial 292 301 293 " Here's how we get into regex mode294 302 " Standard /.../ 295 303 syn region p6Regex
