summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grammar/rust.lm8
1 files changed, 6 insertions, 2 deletions
diff --git a/grammar/rust.lm b/grammar/rust.lm
index aadeec08..5fbe957f 100644
--- a/grammar/rust.lm
+++ b/grammar/rust.lm
@@ -850,9 +850,13 @@ def statement
| [use_declaration]
| [macro_invocation_semi]
+def statement_list
+ [statement_list statement]
+| [statement]
+
def statements
- [statement+]
-| [statement+ expression_without_block]
+ [statement_list]
+| [statement_list expression_without_block]
| [expression_without_block]
def loop_label