summaryrefslogtreecommitdiffstats
path: root/src/eval_env.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1062 from tfarina/bindings-typedefEvan Martin2015-12-061-1/+1
|\ | | | | make use of Bindings typedef
| * make use of Bindings typedefThiago Farina2015-12-041-1/+1
| | | | | | | | | | | | | | Looks like we declared this typedef but never used it. It seems we just forgot to use it so this patch makes uses of it now. Otherwise we could just delete it.
* | add "msvc_deps_prefix" to Rule::IsReservedBinding()Niklas Rosenstein2015-12-061-1/+2
|/ | | | | | | | | fixes the error about an unexpected variable for a rule that declares the msvc_deps_prefix. The manual suggests that this should work since Ninja 1.5 (https://ninja-build.org/manual.html#ref_rule). Closes #1043
* Fix an assert (and tests in --debug mode) after #921.Nico Weber2015-04-091-1/+1
|
* Add a missing &. (No behavior change, only used in tests.)Nico Weber2015-03-181-1/+1
|
* Allow scoping rules through subninjaMohamed Bamakhrama2015-03-011-0/+51
| | | | | | | | Ninja didn't support scoping rules through subninja and assumed a unique rule name in the whole namespace. With this change, this behavior is changed to allow scoping rules. Two rules can have the same name if they belong to two different scopes. However, two rules can NOT have the same name in the same scope.
* rearrange handling of builtin bindings to make rules simplerEvan Martin2012-12-291-0/+16
| | | | | Now, a 'build' block can override any special binding like 'command' or 'description' if it needs to.
* Revert "Make StringPiece data members private."Nico Weber2012-07-281-1/+1
| | | | | | This reverts commit 904c9610fe66c4f4bd63a07d6f057c8603d24394. The commit caused issue #380, this revert fixes it. The revert also makes the test from the previous commit pass.
* Make StringPiece data members private.Thiago Farina2012-06-301-1/+1
| | | | Signed-off-by: Thiago Farina <tfarina@chromium.org>
* make evalstring internals privateEvan Martin2011-12-301-3/+6
|
* switch the core ninja parser to use re2c for the lexerEvan Martin2011-12-291-58/+22
| | | | | | | | | - 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.
* Allow '$ ' to escape spaces in identifiers.Jeremy Apthorp2011-11-211-0/+3
|
* expand $$ as $Evan Martin2011-05-271-0/+3
|
* include location of error in parse error messages in EvalEnv stringsAlexei Svitkine2011-04-261-1/+5
| | | | | E.g. when parsing "foo = ${bar", point at the correct location of the missing curly brace.
* handle variable expansion with upper-case charactersOrestis Agathokleous2011-03-071-1/+3
|
* add copyrightsEvan Martin2011-02-061-0/+14
|
* split some of jumble outEvan Martin2011-01-191-0/+71