diff --git a/docs/html/md__grammar.html b/docs/html/md__grammar.html index 29a641377..ea899ac9d 100644 --- a/docs/html/md__grammar.html +++ b/docs/html/md__grammar.html @@ -60,7 +60,7 @@ $(document).ready(function(){initNavTree('md__grammar.html','');});

type_decl = ( table | struct ) ident metadata { field_decl+ }

enum_decl = ( enum | union ) ident [ : type ] metadata { commasep( enumval_decl ) }

root_decl = root_type ident ;

-

field_decl = type : ident [ = scalar ] metadata ;

+

field_decl = ident : type [ = scalar ] metadata ;

type = bool | byte | ubyte | short | ushort | int | uint | float | long | ulong | double | string | [ type ] | ident

enumval_decl = ident [ = integer_constant ]

metadata = [ ( commasep( ident [ : scalar ] ) ) ]

diff --git a/docs/source/Grammar.md b/docs/source/Grammar.md index f40a1eb35..cafc05487 100755 --- a/docs/source/Grammar.md +++ b/docs/source/Grammar.md @@ -18,7 +18,7 @@ enumval\_decl ) `}` root\_decl = `root_type` ident `;` -field\_decl = type `:` ident [ `=` scalar ] metadata `;` +field\_decl = ident `:` type [ `=` scalar ] metadata `;` type = `bool` | `byte` | `ubyte` | `short` | `ushort` | `int` | `uint` | `float` | `long` | `ulong` | `double`