diff options
author | Hirokazu Hata <[email protected]> | 2019-01-13 13:46:10 +0000 |
---|---|---|
committer | Hirokazu Hata <[email protected]> | 2019-01-16 14:22:14 +0000 |
commit | 4729a1b05427aa7d63b1dcb9ee6dceef2cfc613e (patch) | |
tree | 3ba8f917486d57014d418e5bb83a47c54e80303f /crates/ra_syntax/src | |
parent | d75a0368f5048243d6561e42e77835f6f574b321 (diff) |
Update ARRAY_EXPR grammar
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 6 | ||||
-rw-r--r-- | crates/ra_syntax/src/grammar.ron | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs index 3471d5226..2d9603d90 100644 --- a/crates/ra_syntax/src/ast/generated.rs +++ b/crates/ra_syntax/src/ast/generated.rs | |||
@@ -67,7 +67,11 @@ impl AstNode for ArrayExpr { | |||
67 | } | 67 | } |
68 | 68 | ||
69 | 69 | ||
70 | impl ArrayExpr {} | 70 | impl ArrayExpr { |
71 | pub fn exprs(&self) -> impl Iterator<Item = &Expr> { | ||
72 | super::children(self) | ||
73 | } | ||
74 | } | ||
71 | 75 | ||
72 | // ArrayType | 76 | // ArrayType |
73 | #[derive(Debug, PartialEq, Eq, Hash)] | 77 | #[derive(Debug, PartialEq, Eq, Hash)] |
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron index bd8c5b411..2aaad46b1 100644 --- a/crates/ra_syntax/src/grammar.ron +++ b/crates/ra_syntax/src/grammar.ron | |||
@@ -360,7 +360,9 @@ Grammar( | |||
360 | "TupleExpr": ( | 360 | "TupleExpr": ( |
361 | collections: [["exprs", "Expr"]] | 361 | collections: [["exprs", "Expr"]] |
362 | ), | 362 | ), |
363 | "ArrayExpr": (), | 363 | "ArrayExpr": ( |
364 | collections: [["exprs", "Expr"]] | ||
365 | ), | ||
364 | "ParenExpr": (options: ["Expr"]), | 366 | "ParenExpr": (options: ["Expr"]), |
365 | "PathExpr": (options: ["Path"]), | 367 | "PathExpr": (options: ["Path"]), |
366 | "LambdaExpr": ( | 368 | "LambdaExpr": ( |