aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/grammar.ron
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-08-08 14:04:28 +0100
committerbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-08-08 14:04:28 +0100
commit87608904f697a3f58ddb71a7f6828dac80f8b3ce (patch)
tree11907e37146390bd033a9667995a5e8c9d61a9ed /crates/ra_syntax/src/grammar.ron
parentde4523fae07a2bf0c058d021bd4cfdb53946c4bf (diff)
parent6fa2d8214784b6ecfc3fbcd98778d4e58fa8664e (diff)
Merge #1661
1661: Parse function parameters attributes r=matklad a=eupn Fixes #1397. The [RFC-2565](https://github.com/rust-lang/rfcs/blob/master/text/2565-formal-function-parameter-attributes.md) specifies `#[attributes]` to function parameters: ```rust fn foo(#[attr] a, #[unused] b, #[must_use] ...) { // ... } ``` This PR adds those attributes into grammar and to the parser, extending corresponding inline tests. Co-authored-by: Evgenii P <[email protected]>
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r--crates/ra_syntax/src/grammar.ron2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron
index 817dedfbf..f2c20573e 100644
--- a/crates/ra_syntax/src/grammar.ron
+++ b/crates/ra_syntax/src/grammar.ron
@@ -642,12 +642,14 @@ Grammar(
642 "SelfParam": ( 642 "SelfParam": (
643 traits: [ 643 traits: [
644 "TypeAscriptionOwner", 644 "TypeAscriptionOwner",
645 "AttrsOwner",
645 ] 646 ]
646 ), 647 ),
647 "Param": ( 648 "Param": (
648 options: [ "Pat" ], 649 options: [ "Pat" ],
649 traits: [ 650 traits: [
650 "TypeAscriptionOwner", 651 "TypeAscriptionOwner",
652 "AttrsOwner",
651 ] 653 ]
652 ), 654 ),
653 "UseItem": ( 655 "UseItem": (