sorbits/ninja — comment on commit f4d1354e25b8e0778000fd386ccce9cc49fad670
File: src/depfile_parser.in.cc line 28
By sorbits:

Trial and error — I’ve previously needed to generate Makefiles and went through GNU Make’s manual to find all special characters in goals, dependencies, etc. and what’s in this commit are those which can be escaped (there are more special characters, but no simple way to escape them) — though as noted in the comment, what matters more for this Makefile parser is how GCC/clang will escape file names when creating a Makefile.