aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/lexer.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-10 10:01:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-10 10:01:45 +0200
commit1ea33ab70f88fcfebf388a9a438e3c1e56fbdf0f (patch)
tree359f61dc51fee77abd1f376b45418501de549104 /libbuild2/lexer.hxx
parentd5faeeab1d2115c02a330ac9c95d63ba225faabc (diff)
Handle special variable names when spelled as $(<char>) rather than $<char>
Diffstat (limited to 'libbuild2/lexer.hxx')
-rw-r--r--libbuild2/lexer.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbuild2/lexer.hxx b/libbuild2/lexer.hxx
index f577828..6c2b90b 100644
--- a/libbuild2/lexer.hxx
+++ b/libbuild2/lexer.hxx
@@ -161,6 +161,9 @@ namespace build2
lexer_mode
mode () const {return state_.top ().mode;}
+ uintptr_t
+ mode_data () const {return state_.top ().data;}
+
char
pair_separator () const {return state_.top ().sep_pair;}