mirror of
https://github.com/reactos/ninja.git
synced 2025-02-22 20:52:24 +00:00
skip trailing whitespace
This commit is contained in:
parent
ccd0d265ec
commit
0fb7308df5
2
ninja.h
2
ninja.h
@ -327,6 +327,8 @@ bool ManifestParser::Parse(const string& input, string* err) {
|
||||
}
|
||||
}
|
||||
|
||||
SkipWhitespace(true);
|
||||
|
||||
if (cur_ < end_)
|
||||
return Error("expected eof", err);
|
||||
|
||||
|
@ -71,7 +71,7 @@ TEST(Parser, Rule) {
|
||||
string err;
|
||||
EXPECT_TRUE(parser.Parse(
|
||||
"rule cat\n"
|
||||
"command cat @in > $out\n",
|
||||
"command cat @in > $out\n\n",
|
||||
&err));
|
||||
EXPECT_EQ("", err);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user