Allowing _ as first character of identifiers in .fbs/.json.
Change-Id: Ie2cb42632f6a907a38e10b2c9be1536cf330b2fa Tested: on Linux.
This commit is contained in:
parent
a96bfdb369
commit
5f091c46ce
|
@ -198,7 +198,7 @@ void Parser::Next() {
|
|||
}
|
||||
// fall thru
|
||||
default:
|
||||
if (isalpha(static_cast<unsigned char>(c))) {
|
||||
if (isalpha(static_cast<unsigned char>(c)) || c == '_') {
|
||||
// Collect all chars of an identifier:
|
||||
const char *start = cursor_ - 1;
|
||||
while (isalnum(static_cast<unsigned char>(*cursor_)) ||
|
||||
|
|
Loading…
Reference in New Issue