Skip to content

Commit ce645ca

Browse files
authored
added missing whitespace to named_field
not 100% sure but i think named_field should allow whitespace after the colon and before the value
1 parent 366c1d8 commit ce645ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/grammar.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ struct = unit_struct | tuple_struct | named_struct;
127127
unit_struct = ident | "()";
128128
tuple_struct = [ident], ws, tuple;
129129
named_struct = [ident], ws, "(", [named_field, { comma, named_field }, [comma]], ")";
130-
named_field = ident, ws, ":", value;
130+
named_field = ident, ws, ":", ws, value;
131131
```
132132

133133
## Enum

0 commit comments

Comments
 (0)