aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/code/rust.tmGrammar.json62
1 files changed, 61 insertions, 1 deletions
diff --git a/editors/code/rust.tmGrammar.json b/editors/code/rust.tmGrammar.json
index b3eec327b..77595aa00 100644
--- a/editors/code/rust.tmGrammar.json
+++ b/editors/code/rust.tmGrammar.json
@@ -462,7 +462,7 @@
462 "name": "punctuation.brackets.angle.rust" 462 "name": "punctuation.brackets.angle.rust"
463 } 463 }
464 }, 464 },
465 "end": "\\{", 465 "end": "\\{|;",
466 "endCaptures": { 466 "endCaptures": {
467 "0": { 467 "0": {
468 "name": "punctuation.brackets.curly.rust" 468 "name": "punctuation.brackets.curly.rust"
@@ -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 {