mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Fixed native_include not requiring a ; terminator.
Change-Id: Ic4f49e94c67ba23f07e5ba7e87ca94e8db5d5906 Tested: on Linux.
This commit is contained in:
@@ -2273,6 +2273,7 @@ CheckedError Parser::DoParse(const char *source, const char **include_paths,
|
||||
NEXT();
|
||||
vector_emplace_back(&native_included_files_, attribute_);
|
||||
EXPECT(kTokenStringConstant);
|
||||
EXPECT(';');
|
||||
} else if (IsIdent("include") || (opts.proto_mode && IsIdent("import"))) {
|
||||
NEXT();
|
||||
if (opts.proto_mode && attribute_ == "public") NEXT();
|
||||
|
||||
Reference in New Issue
Block a user