diff options
author | Aleksey Kladov <[email protected]> | 2018-08-30 19:32:12 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-30 19:32:12 +0100 |
commit | 8f552ab35222b7ea571f7ea9357db41489ae2247 (patch) | |
tree | af26565a1269276bf3026349b191be98ae5f3ea5 /crates/libsyntax2/src/grammar.ron | |
parent | 80ab3433d3376b7c44787d63af6e7b3217ae41d8 (diff) |
break/continue completion
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r-- | crates/libsyntax2/src/grammar.ron | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index 8267c2854..da18da8a9 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron | |||
@@ -354,19 +354,19 @@ Grammar( | |||
354 | options: [ ["condition", "Condition"] ] | 354 | options: [ ["condition", "Condition"] ] |
355 | ), | 355 | ), |
356 | "LoopExpr": ( | 356 | "LoopExpr": ( |
357 | options: [ ["body", "Block"] ] | 357 | traits: ["LoopBodyOwner"], |
358 | ), | 358 | ), |
359 | "ForExpr": ( | 359 | "ForExpr": ( |
360 | traits: ["LoopBodyOwner"], | ||
360 | options: [ | 361 | options: [ |
361 | ["pat", "Pat"], | 362 | ["pat", "Pat"], |
362 | ["iterable", "Expr"], | 363 | ["iterable", "Expr"], |
363 | ["body", "Block"] , | ||
364 | ] | 364 | ] |
365 | ), | 365 | ), |
366 | "WhileExpr": ( | 366 | "WhileExpr": ( |
367 | traits: ["LoopBodyOwner"], | ||
367 | options: [ | 368 | options: [ |
368 | ["condition", "Condition"], | 369 | ["condition", "Condition"], |
369 | ["body", "Block"], | ||
370 | ] | 370 | ] |
371 | ), | 371 | ), |
372 | "ContinueExpr": (), | 372 | "ContinueExpr": (), |