Allowing _ as first character of identifiers in .fbs/.json.

Change-Id: Ie2cb42632f6a907a38e10b2c9be1536cf330b2fa
Tested: on Linux.
This commit is contained in:
Wouter van Oortmerssen 2015-06-15 12:17:19 -07:00
parent a96bfdb369
commit 5f091c46ce
1 changed files with 1 additions and 1 deletions

View File

@ -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_)) ||