Fixed native_include not requiring a ; terminator.

Change-Id: Ic4f49e94c67ba23f07e5ba7e87ca94e8db5d5906
Tested: on Linux.
parent f431a965
...@@ -2273,6 +2273,7 @@ CheckedError Parser::DoParse(const char *source, const char **include_paths, ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment