|
18 | 18 | - include: "#static_assert" |
19 | 19 | - include: "#other_keywords" |
20 | 20 | - include: "#memory_operators" |
| 21 | +- include: "#using_name" |
21 | 22 | - include: "#the_this_keyword" |
22 | 23 | - include: "#language_constants" |
23 | 24 | - include: "#template_isolated_definition" |
|
369 | 370 | name: punctuation.section.arguments.end.bracket.round.decltype.cpp |
370 | 371 | patterns: |
371 | 372 | - include: "#evaluation_context" |
| 373 | + using_name: |
| 374 | + match: "(using)\\s+(?!namespace\\b)" |
| 375 | + captures: |
| 376 | + '1': |
| 377 | + name: keyword.other.using.directive.cpp |
372 | 378 | functional_specifiers_pre_parameters: |
373 | 379 | match: "(?<!\\w)(?:inline|constexpr|mutable|friend|explicit|virtual)(?!\\w)" |
374 | 380 | name: storage.modifier.specificer.functional.pre-parameters.$0.cpp |
|
499 | 505 | patterns: |
500 | 506 | - include: "#attributes_context" |
501 | 507 | - include: "#string_context_c" |
502 | | - - match: "(using)\\s+((?<!\\w)(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U000[0-9a-fA-F]))(?:(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U000[0-9a-fA-F])))*(?!\\w))" |
503 | | - captures: |
504 | | - '1': |
505 | | - name: keyword.other.using.directive.cpp |
506 | | - '2': |
507 | | - name: entity.name.namespace.cpp |
| 508 | + - include: "#using_name" |
508 | 509 | - match: "," |
509 | 510 | name: punctuation.separator.attribute.cpp |
510 | 511 | - match: ":" |
|
531 | 532 | patterns: |
532 | 533 | - include: "#attributes_context" |
533 | 534 | - include: "#string_context_c" |
534 | | - - match: "(using)\\s+((?<!\\w)(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U000[0-9a-fA-F]))(?:(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U000[0-9a-fA-F])))*(?!\\w))" |
535 | | - captures: |
536 | | - '1': |
537 | | - name: keyword.other.using.directive.cpp |
538 | | - '2': |
539 | | - name: entity.name.namespace.cpp |
| 535 | + - include: "#using_name" |
540 | 536 | - match: "," |
541 | 537 | name: punctuation.separator.attribute.cpp |
542 | 538 | - match: ":" |
|
563 | 559 | patterns: |
564 | 560 | - include: "#attributes_context" |
565 | 561 | - include: "#string_context_c" |
566 | | - - match: "(using)\\s+((?<!\\w)(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U000[0-9a-fA-F]))(?:(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U000[0-9a-fA-F])))*(?!\\w))" |
567 | | - captures: |
568 | | - '1': |
569 | | - name: keyword.other.using.directive.cpp |
570 | | - '2': |
571 | | - name: entity.name.namespace.cpp |
| 562 | + - include: "#using_name" |
572 | 563 | - match: "," |
573 | 564 | name: punctuation.separator.attribute.cpp |
574 | 565 | - match: ":" |
|
595 | 586 | patterns: |
596 | 587 | - include: "#attributes_context" |
597 | 588 | - include: "#string_context_c" |
598 | | - - match: "(using)\\s+((?<!\\w)(?:[a-zA-Z_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U000[0-9a-fA-F]))(?:(?:[a-zA-Z0-9_]|(?:\\\\u[0-9a-fA-F]{4}|\\\\U000[0-9a-fA-F])))*(?!\\w))" |
599 | | - captures: |
600 | | - '1': |
601 | | - name: keyword.other.using.directive.cpp |
602 | | - '2': |
603 | | - name: entity.name.namespace.cpp |
| 589 | + - include: "#using_name" |
604 | 590 | - match: "," |
605 | 591 | name: punctuation.separator.attribute.cpp |
606 | 592 | - match: ":" |
|
0 commit comments