|
244 | 244 | { 'include': '#q_triple_brace_string_content' }
|
245 | 245 | ]
|
246 | 246 | }
|
| 247 | + # Q_triple_angle |
| 248 | + { |
| 249 | + 'begin': '(?x) (?<=^|[\\s\\(\\){},;]) |
| 250 | + (Q(?:x|w|ww|v|s|a|h|f|c|b|p)?) |
| 251 | + ((?: |
| 252 | + \\s*:(?: |
| 253 | + x|exec|w|words|ww|quotewords|v|val|q|single|double| |
| 254 | + s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash| |
| 255 | + regexp|substr|trans|codes|p|path |
| 256 | + ) |
| 257 | + )*) |
| 258 | + \\s*(<<<)' |
| 259 | + 'beginCaptures': |
| 260 | + '1': 'name': 'string.quoted.q.operator.perl6fe' |
| 261 | + '2': 'name': 'support.function.quote.adverb.perl6fe' |
| 262 | + '3': 'name': 'punctuation.definition.string.perl6fe' |
| 263 | + 'end': '>>>' |
| 264 | + 'endCaptures': |
| 265 | + '0': 'name': 'punctuation.definition.string.perl6fe' |
| 266 | + 'contentName': 'string.quoted.q.triple_angle.quote.perl6fe' |
| 267 | + 'patterns': [ { 'include': '#q_triple_angle_string_content' } ] |
| 268 | + } |
| 269 | + # q_triple_angle |
| 270 | + { |
| 271 | + 'begin': '(?x) (?<=^|[\\s\\(\\){},;]) |
| 272 | + (q(?:x|w|ww|v|s|a|h|f|c|b|p)?) |
| 273 | + ((?: |
| 274 | + \\s*:(?: |
| 275 | + x|exec|w|words|ww|quotewords|v|val|q|single|double| |
| 276 | + s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash| |
| 277 | + regexp|substr|trans|codes|p|path |
| 278 | + ) |
| 279 | + )*) |
| 280 | + \\s*(<<<)' |
| 281 | + 'beginCaptures': |
| 282 | + '1': 'name': 'string.quoted.q.operator.perl6fe' |
| 283 | + '2': 'name': 'support.function.quote.adverb.perl6fe' |
| 284 | + '3': 'name': 'punctuation.definition.string.perl6fe' |
| 285 | + 'end': '\\\\\\\\>>>|(?<!\\\\)>>>' |
| 286 | + 'endCaptures': |
| 287 | + '0': 'name': 'punctuation.definition.string.perl6fe' |
| 288 | + 'contentName': 'string.quoted.q.triple_angle.quote.perl6fe' |
| 289 | + 'patterns': [ |
| 290 | + { |
| 291 | + 'match': '\\\\<<<|\\\\>>>' |
| 292 | + 'name': 'constant.character.escape.perl6fe' |
| 293 | + } |
| 294 | + { 'include': '#q_triple_angle_string_content' } |
| 295 | + ] |
| 296 | + } |
| 297 | + # qq_triple_angle |
| 298 | + { |
| 299 | + 'begin': '(?x) (?<=^|[\\s\\(\\){},;]) |
| 300 | + (qq(?:x|w|ww|v|s|a|h|f|c|b|p)?) |
| 301 | + ((?: |
| 302 | + \\s*:(?: |
| 303 | + x|exec|w|words|ww|quotewords|v|val|q|single|double| |
| 304 | + s|scalar|a|array|h|hash|f|function|c|closure|b|blackslash| |
| 305 | + regexp|substr|trans|codes|p|path |
| 306 | + ) |
| 307 | + )*) |
| 308 | + \\s*(<<<)' |
| 309 | + 'beginCaptures': |
| 310 | + '1': 'name': 'string.quoted.qq.operator.perl6fe' |
| 311 | + '2': 'name': 'support.function.quote.adverb.perl6fe' |
| 312 | + '3': 'name': 'punctuation.definition.string.perl6fe' |
| 313 | + 'end': '\\\\\\\\>>>|(?<!\\\\)>>>' |
| 314 | + 'endCaptures': |
| 315 | + '0': 'name': 'punctuation.definition.string.perl6fe' |
| 316 | + 'contentName': 'string.quoted.qq.triple_angle.quote.perl6fe' |
| 317 | + 'patterns': [ |
| 318 | + { |
| 319 | + 'match': '\\\\<<<|\\\\>>>' |
| 320 | + 'name': 'constant.character.escape.perl6fe' |
| 321 | + } |
| 322 | + { 'include': '#qq_character_escape' } |
| 323 | + { 'include': 'source.perl6fe#interpolation' } |
| 324 | + { 'include': '#q_triple_angle_string_content' } |
| 325 | + ] |
| 326 | + } |
247 | 327 | # Q_double_angle
|
248 | 328 | {
|
249 | 329 | 'begin': '(?x) (?<=^|[\\s\\(\\){},;])
|
|
1580 | 1660 | 'begin': '\\{\\{\\{'
|
1581 | 1661 | 'end': '\\\\\\\\\\}\\}\\}|(?<!\\\\)\\}\\}\\}'
|
1582 | 1662 | 'patterns': [ { 'include': '#q_triple_brace_string_content' } ]
|
| 1663 | + # q_triple_angle |
| 1664 | + 'q_triple_angle_string_content': |
| 1665 | + 'begin': '<<<' |
| 1666 | + 'end': '\\\\\\\\>>>|(?<!\\\\)>>>' |
| 1667 | + 'patterns': [ { 'include': '#q_triple_angle_string_content' } ] |
1583 | 1668 | # q_double_angle
|
1584 | 1669 | 'q_double_angle_string_content':
|
1585 | 1670 | 'begin': '<<'
|
|
0 commit comments