mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-04 20:48:59 +00:00
An user-defined attribute name validation (#4689)
* User-declared attribute should be either identifier or string with the identifier. * Attribute can be identifier or string in metadata.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
af3c598189
commit
7eb4c6098e
@@ -10,7 +10,7 @@ include = `include` string\_constant `;`
|
||||
|
||||
namespace\_decl = `namespace` ident ( `.` ident )* `;`
|
||||
|
||||
attribute\_decl = `attribute` string\_constant `;`
|
||||
attribute\_decl = `attribute` ident | `"`ident`"` `;`
|
||||
|
||||
type\_decl = ( `table` | `struct` ) ident metadata `{` field\_decl+ `}`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user