sorbits/ninja — comment on commit f4d1354e25b8e0778000fd386ccce9cc49fad670
File:  line 0
By martine:

One way approach lexing the backslashes "in place" is something like:

```
for (;;) { // loop that gathers each file (as in the existing code)
for (;;) { // loop that gathers the characters in a path (this is new)
// then re2c rules like this
'\\'. { per-character logic here from UnescapePath }
[a-zA-Z etc] { just copy the character directly }
[^] { this is the 'unhandled character' rule, which we should use to break out of the inner for loop }
}
// then here, skip spaces, perhaps manually or using re2c if you like
}
```

Finally, can you add tests to depfile_parser_test.cc? It should be pretty simple to cover most of these cases.