aboutsummaryrefslogtreecommitdiff
path: root/syntax.md
diff options
context:
space:
mode:
Diffstat (limited to 'syntax.md')
-rw-r--r--syntax.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax.md b/syntax.md
index c7e0e0e..6b94b8b 100644
--- a/syntax.md
+++ b/syntax.md
@@ -187,8 +187,8 @@ TypeDeclaration ← StructDeclaration /
TypedefDeclaration
StructDeclaration ← 'struct' identifier '{' VariableDeclaration+ '}' ';'
EnumDeclaration ← 'enum' identifier '{' EnumBody '}' ';'
-EnumBody ← identifier ',' EnumBody /
- identifier ','?
+EnumBody ← identifier ('=' Expression)? ',' EnumBody /
+ identifier ('=' Expression)? ','?
TypedefDeclaration ← 'typedef' identifier '=' Type ';'
FunctionDeclaration ← FunctionSignature ';'