diff options
author | Evan Martin <martine@danga.com> | 2011-12-20 18:33:42 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-20 18:33:42 (GMT) |
commit | 2e7ab7514207ea7faad40faedf3fc9d72b3adf7a (patch) | |
tree | 496d4c007c80a9492c7d0dabbf11a158034a4768 /src/parsers.cc | |
parent | 60fdf57cbc2b6201564d17b991f3612edcd65351 (diff) | |
parent | 9be1597a218e61fd6f7f5b3c3a52ebd2e51cac6b (diff) | |
download | Ninja-2e7ab7514207ea7faad40faedf3fc9d72b3adf7a.zip Ninja-2e7ab7514207ea7faad40faedf3fc9d72b3adf7a.tar.gz Ninja-2e7ab7514207ea7faad40faedf3fc9d72b3adf7a.tar.bz2 |
Merge pull request #146 from nornagon/escape-spaces
Escape spaces
Diffstat (limited to 'src/parsers.cc')
-rw-r--r-- | src/parsers.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parsers.cc b/src/parsers.cc index ea73287..44c3711 100644 --- a/src/parsers.cc +++ b/src/parsers.cc @@ -217,6 +217,9 @@ Token::Type Tokenizer::PeekToken() { if (IsIdentChar(*cur_)) { while (cur_ < end_ && IsIdentChar(*cur_)) { + if (*cur_ == '$' && cur_ + 1 < end_ && cur_[1] == ' ') { + ++cur_; + } ++cur_; } token_.end_ = cur_; |