summaryrefslogtreecommitdiffstats
path: root/src/lexer.cc
Commit message (Collapse)AuthorAgeFilesLines
* Lexer: include leading spaces in the newline token.Evan Jones2012-01-051-84/+90
| | | | This means that indented blank lines are skipped without causing errors.
* make Lexer::Error not emit trailing newlineEvan Martin2012-01-051-1/+1
| | | | | Now it's consistent with other errors. Fixes part of issue #187.
* Lexer: include leading whitespace in the comment token.Evan Jones2012-01-051-53/+63
| | | | Indented comments are ignored rather than causing errors.
* windows: more build fixesScott Graham2012-01-041-0/+1
|
* allow hyphen in variable namesEvan Martin2011-12-301-16/+24
|
* make evalstring internals privateEvan Martin2011-12-301-6/+6
|
* switch the core ninja parser to use re2c for the lexerEvan Martin2011-12-291-0/+729
- Delete the old "Tokenizer" code. - Write separate tests for the lexer distinct from the parser. - Switch the parser to use the new code. - New lexer error output has file:line numbers so e.g. Emacs can jump your editor to the syntax error. - The EvalEnv ($-interpolation) code is now part of the lexer as well.