aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/code/rust.tmGrammar.json60
1 files changed, 60 insertions, 0 deletions
diff --git a/editors/code/rust.tmGrammar.json b/editors/code/rust.tmGrammar.json
index 1d11d2c19..77595aa00 100644
--- a/editors/code/rust.tmGrammar.json
+++ b/editors/code/rust.tmGrammar.json
@@ -545,9 +545,66 @@
545 "include": "#lvariables" 545 "include": "#lvariables"
546 }, 546 },
547 { 547 {
548 "include": "#constants"
549 },
550 {
551 "include": "#gtypes"
552 },
553 {
554 "include": "#functions"
555 },
556 {
557 "include": "#lifetimes"
558 },
559 {
560 "include": "#macros"
561 },
562 {
548 "include": "#namespaces" 563 "include": "#namespaces"
549 }, 564 },
550 { 565 {
566 "include": "#punctuation"
567 },
568 {
569 "include": "#strings"
570 },
571 {
572 "include": "#types"
573 },
574 {
575 "include": "#variables"
576 }
577 ]
578 },
579 {
580 "comment": "function/method calls with turbofish",
581 "name": "meta.function.call.rust",
582 "begin": "((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)(?=::<.*>\\()",
583 "beginCaptures": {
584 "1": {
585 "name": "entity.name.function.rust"
586 }
587 },
588 "end": "\\)",
589 "endCaptures": {
590 "0": {
591 "name": "punctuation.brackets.round.rust"
592 }
593 },
594 "patterns": [
595 {
596 "include": "#block-comments"
597 },
598 {
599 "include": "#comments"
600 },
601 {
602 "include": "#keywords"
603 },
604 {
605 "include": "#lvariables"
606 },
607 {
551 "include": "#constants" 608 "include": "#constants"
552 }, 609 },
553 { 610 {
@@ -563,6 +620,9 @@
563 "include": "#macros" 620 "include": "#macros"
564 }, 621 },
565 { 622 {
623 "include": "#namespaces"
624 },
625 {
566 "include": "#punctuation" 626 "include": "#punctuation"
567 }, 627 },
568 { 628 {