aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-09-12 12:01:11 +0200
committerHimbeer <himbeer@disroot.org>2024-09-12 12:34:26 +0200
commit7860861841f9901f25d643ba3180191e07d1ab25 (patch)
tree1f2a1ea27d2a508683e1a188ffadda774ba2958b /doc
parentc1546a0e7d6a814169dc834c6a1bd4651c7a9071 (diff)
Add missing "for" keyword to loop grammar rule
Diffstat (limited to 'doc')
-rw-r--r--doc/grammar.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt
index 57fa43f..f14ee1b 100644
--- a/doc/grammar.txt
+++ b/doc/grammar.txt
@@ -28,7 +28,7 @@ if := "if" expression block elseif* else*
elseif := "else" "if" expression block
else := "else" block
-for := [ ":" NAME ] [ assignment ";" ] expression [ ";" assignment ] block
+for := "for" [ ":" NAME ] [ assignment ";" ] expression [ ";" assignment ] block
return := "return" expression