diff options
author | Demetri Obenour <demetriobenour@gmail.com> | 2014-05-08 14:29:27 (GMT) |
---|---|---|
committer | Demetri Obenour <demetriobenour@gmail.com> | 2014-05-08 14:29:27 (GMT) |
commit | b063d8e882cecd5a4efc59b7182909a918500f12 (patch) | |
tree | 5def3c706f3236cb04090a5f2885ad8a4ff46f9a /src/depfile_parser.in.cc | |
parent | 7ea137fc9a0e810f4d80ef28ea61de30ede0f730 (diff) | |
download | Ninja-b063d8e882cecd5a4efc59b7182909a918500f12.zip Ninja-b063d8e882cecd5a4efc59b7182909a918500f12.tar.gz Ninja-b063d8e882cecd5a4efc59b7182909a918500f12.tar.bz2 |
Added support for international characters in makefile dependency names
Diffstat (limited to 'src/depfile_parser.in.cc')
-rw-r--r-- | src/depfile_parser.in.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depfile_parser.in.cc b/src/depfile_parser.in.cc index b59baf0..24744c7 100644 --- a/src/depfile_parser.in.cc +++ b/src/depfile_parser.in.cc @@ -45,7 +45,7 @@ bool DepfileParser::Parse(string* content, string* err) { // start: beginning of the current parsed span. const char* start = in; /*!re2c - re2c:define:YYCTYPE = "char"; + re2c:define:YYCTYPE = "unsigned char"; re2c:define:YYCURSOR = in; re2c:define:YYLIMIT = end; @@ -73,7 +73,7 @@ bool DepfileParser::Parse(string* content, string* err) { *out++ = yych; continue; } - [a-zA-Z0-9+,/_:.~()}{@=!-]+ { + [a-zA-Z0-9+,/_:.~()}{@=!\x80-\xFF-]+ { // Got a span of plain text. int len = (int)(in - start); // Need to shift it over if we're overwriting backslashes. |