drop reserved words 'build'/'rule'/'subninja'/etc.
authorEvan Martin <martine@danga.com>
Sun, 1 May 2011 01:49:50 +0000 (18:49 -0700)
committerEvan Martin <martine@danga.com>
Sun, 1 May 2011 02:03:12 +0000 (19:03 -0700)
commitf3910e0ca2b5d5d3f900fe356f8fd81b8828ec09
tree870998bffa3a0e427a14daa15d75ac22c243db59
parentbce2d134b166c570e659ff43923103f241a614de
drop reserved words 'build'/'rule'/'subninja'/etc.

Instead, parse them as normal words, which makes them work as paths.
We instead rely on the *position* (i.e., we start a statement with a
keyword and not a path) to distinguish the keyword 'build' from the file
'build'.
src/parsers.cc
src/parsers.h
src/parsers_test.cc