diff --git a/src/idl_parser.cpp b/src/idl_parser.cpp index 0d0f7defe..37a3c6a2f 100644 --- a/src/idl_parser.cpp +++ b/src/idl_parser.cpp @@ -198,7 +198,7 @@ void Parser::Next() { } // fall thru default: - if (isalpha(static_cast(c))) { + if (isalpha(static_cast(c)) || c == '_') { // Collect all chars of an identifier: const char *start = cursor_ - 1; while (isalnum(static_cast(*cursor_)) ||