summaryrefslogtreecommitdiffstats
path: root/src/depfile_parser.cc
diff options
context:
space:
mode:
authorMaxim Kalaev <maximus.ka@gmail.com>2014-05-07 17:56:32 (GMT)
committerMaxim Kalaev <maximus.ka@gmail.com>2014-05-07 18:18:42 (GMT)
commit2136ca304ad492189b59c0a9e747541c6ea29002 (patch)
tree218e4837f92ecf9ef178aee726b6644d0458763e /src/depfile_parser.cc
parent1a465ea6c895e4984f9ea7dfea355b66cb489cca (diff)
downloadNinja-2136ca304ad492189b59c0a9e747541c6ea29002.zip
Ninja-2136ca304ad492189b59c0a9e747541c6ea29002.tar.gz
Ninja-2136ca304ad492189b59c0a9e747541c6ea29002.tar.bz2
Allow paths with '{' '}' in depfiles
Diffstat (limited to 'src/depfile_parser.cc')
-rw-r--r--src/depfile_parser.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/depfile_parser.cc b/src/depfile_parser.cc
index d052a4b..4ca3943 100644
--- a/src/depfile_parser.cc
+++ b/src/depfile_parser.cc
@@ -64,7 +64,7 @@ bool DepfileParser::Parse(string* content, string* err) {
0, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
128, 128, 128, 128, 128, 128, 128, 128,
- 128, 128, 128, 0, 0, 0, 128, 0,
+ 128, 128, 128, 128, 0, 128, 128, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
@@ -114,11 +114,12 @@ bool DepfileParser::Parse(string* content, string* err) {
if (yych != '\\') goto yy9;
}
} else {
- if (yych <= 'z') {
+ if (yych <= '{') {
if (yych == '`') goto yy9;
goto yy5;
} else {
- if (yych == '~') goto yy5;
+ if (yych <= '|') goto yy9;
+ if (yych <= '~') goto yy5;
goto yy9;
}
}