diff options
Diffstat (limited to 'src/depfile_parser.in.cc')
-rw-r--r-- | src/depfile_parser.in.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/depfile_parser.in.cc b/src/depfile_parser.in.cc index f96cdb3..cf24a09 100644 --- a/src/depfile_parser.in.cc +++ b/src/depfile_parser.in.cc @@ -55,13 +55,18 @@ bool DepfileParser::Parse(string* content, string* err) { re2c:indent:string = " "; nul = "\000"; - escape = [ \\#*$[|]; + escape = [ \\#*[|]; '\\' escape { // De-escape backslashed character. *out++ = yych; continue; } + '$$' { + // De-escape dollar character. + *out++ = '$'; + continue; + } '\\' [^\000\n] { // Let backslash before other characters through verbatim. *out++ = '\\'; |