add support for field numbering
the old parser allows this syntax:
```
!table Table:
field1 = 1 <: type
```
this commit adds support to that syntax.
@@ -57,7 +57,14 @@ table -> mode=("!table"|"!type") NAME attribs? ":"
| table
| SHORTCUT;
- table_field -> field optional="?"? attribs? (":" annotations)?;
+ table_field -> field_with_default_value optional="?"? attribs? (":" annotations)?;
+
+ field_with_default_value -> NAME array_size? field_number=("=" \d+)? "<:"
+ (
+ field_type
+ | %!InlineCommentIndent(field | unspecified_type=NAME)
+ )
+ QSTRING?;
};
facade -> "!wrap" NAME ":"
