mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 16:13:57 +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();
|
NEXT();
|
||||||
vector_emplace_back(&native_included_files_, attribute_);
|
vector_emplace_back(&native_included_files_, attribute_);
|
||||||
EXPECT(kTokenStringConstant);
|
EXPECT(kTokenStringConstant);
|
||||||
|
EXPECT(';');
|
||||||
} else if (IsIdent("include") || (opts.proto_mode && IsIdent("import"))) {
|
} else if (IsIdent("include") || (opts.proto_mode && IsIdent("import"))) {
|
||||||
NEXT();
|
NEXT();
|
||||||
if (opts.proto_mode && attribute_ == "public") NEXT();
|
if (opts.proto_mode && attribute_ == "public") NEXT();
|
||||||
|
|||||||
Reference in New Issue
Block a user