Use escape characters in Ninja build files
masterNinja uses the $ character for escaping and variable expansion. The following behaviors are supported:
$followed by a newline: Escapes the newline to continue the current line across a line breaks.$varnameor${varname}: Variable reference.$followed by a space: Inserts a literal space (useful in path lists).$:: Inserts a literal colon (useful inbuildlines to avoid terminating the output list).$^: Inserts a newline\n(available since Ninja 1.14; requiresninja_required_version >= 1.14).$$: Inserts a literal$.
# Example of using $ to handle spaces and newlines
spaced = foo bar
build $spaced/baz other$ file: ...
# Results in outputs: "foo bar/baz" and "other file"
# Example of line continuation
two_words_with_one_space = foo $
bar