diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/grammar.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/grammar.md b/docs/grammar.md index eee54e2..2fca56e 100644 --- a/docs/grammar.md +++ b/docs/grammar.md @@ -58,7 +58,7 @@ word_or_name = ident_char { ident_tail_char } ident_char = "A".."Z" | "a".."z" | "_" ident_tail_char = ident_char | "0".."9" -word = "fun" | "if" | "else" | "for" | "loop" +word = "fun" | "if" | "else" | "for" | "while" | "loop" | "break" | "continue" | "defer" | "switch" | "return" | "var" | "let" | "type" | "variant" | "class" @@ -120,7 +120,7 @@ statement_loop = statement_loop_for_each | statement_loop_endless statement_loop_for_each = "for" bare_declaration block statement_loop_c = "for" bare_declaration "," expression "," expression block -statement_loop_while = "loop" expression block +statement_loop_while = "while" expression block statement_loop_endless = "loop" block statement_block = block |
