about summary refs log tree commit diff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/grammar.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/grammar.md b/docs/grammar.md
index 2fca56e..18a8550 100644
--- a/docs/grammar.md
+++ b/docs/grammar.md
@@ -72,7 +72,7 @@ STRING_LITERAL = '"' { not_quote } '"'
 digit = "0".."9"
 
 # multi-character symbols are matched eagerly, e.g. "<<=" before "<<".
-symbol = "(" | ")" | "{" | "}" | "[" | "]" | ","
+symbol = "(" | ")" | "{" | "}" | "[" | "]" | "," | ";"
 	| "." | ".." | "..."
 	| "!" | "?" | "~" | "|" | "^"
 	| "+" | "-" | "*" | "/" | "%" | "&" | "="
@@ -90,7 +90,7 @@ symbol = "(" | ")" | "{" | "}" | "[" | "]" | ","
 ```ebnf
 # a translation unit is a stream of statements at the top level.
 unit = { statement statement_end }
-statement_end = NEWLINE | EOF
+statement_end = NEWLINE | ";" | EOF
 
 statement = statement_declaration
 	| statement_conditional