diff options
author | Nico Weber <thakis@chromium.org> | 2013-12-13 21:01:02 (GMT) |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2013-12-13 21:01:02 (GMT) |
commit | 81f935bf2da05ec97da6d6268c7a283859779275 (patch) | |
tree | c8ddbbb38e265dd287ee12bbd6769d4981faacd2 /src/depfile_parser.in.cc | |
parent | 2517b75781decd49bc82f05f8336c509f7b2c62e (diff) | |
download | Ninja-81f935bf2da05ec97da6d6268c7a283859779275.zip Ninja-81f935bf2da05ec97da6d6268c7a283859779275.tar.gz Ninja-81f935bf2da05ec97da6d6268c7a283859779275.tar.bz2 |
Fix additional range in character class.
The range was added in 7ab6dcbdb6447861eefafc47fc3e10f3273cede2, but that
change only tried to add ! to the character class. Fix by moving '-' to the end
of the class.
Fixes #694.
Diffstat (limited to 'src/depfile_parser.in.cc')
-rw-r--r-- | src/depfile_parser.in.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depfile_parser.in.cc b/src/depfile_parser.in.cc index cf24a09..8bb6d84 100644 --- a/src/depfile_parser.in.cc +++ b/src/depfile_parser.in.cc @@ -73,7 +73,7 @@ bool DepfileParser::Parse(string* content, string* err) { *out++ = yych; continue; } - [a-zA-Z0-9+,/_:.~()@=-!]+ { + [a-zA-Z0-9+,/_:.~()@=!-]+ { // Got a span of plain text. int len = (int)(in - start); // Need to shift it over if we're overwriting backslashes. |