diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-10 10:01:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-10 10:01:45 +0200 |
commit | 1ea33ab70f88fcfebf388a9a438e3c1e56fbdf0f (patch) | |
tree | 359f61dc51fee77abd1f376b45418501de549104 /libbuild2/lexer.cxx | |
parent | d5faeeab1d2115c02a330ac9c95d63ba225faabc (diff) |
Handle special variable names when spelled as $(<char>) rather than $<char>
Diffstat (limited to 'libbuild2/lexer.cxx')
-rw-r--r-- | libbuild2/lexer.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbuild2/lexer.cxx b/libbuild2/lexer.cxx index 2f2ace4..4256422 100644 --- a/libbuild2/lexer.cxx +++ b/libbuild2/lexer.cxx @@ -111,6 +111,9 @@ namespace build2 } case lexer_mode::eval: { + // NOTE: remember to update special() lambda in parse_names() if + // adding any new single-character tokens to the eval mode. + // s1 = ":<>=!&|?, $(){}#\t\n"; s2 = " = &| "; break; |