aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/lexer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/build/script/lexer.cxx')
-rw-r--r--libbuild2/build/script/lexer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/build/script/lexer.cxx b/libbuild2/build/script/lexer.cxx
index f5a7333..7b8bdd4 100644
--- a/libbuild2/build/script/lexer.cxx
+++ b/libbuild2/build/script/lexer.cxx
@@ -243,7 +243,7 @@ namespace build2
lexer_mode m (st.mode);
// Customized implementation that handles special variable names ($>,
- // $<).
+ // $<, $~).
//
// @@ TODO: $(<), $(>): feels like this will have to somehow be
// handled at the top-level lexer level. Maybe provide a
@@ -254,7 +254,7 @@ namespace build2
xchar c (peek ());
- if (c != '>' && c != '<')
+ if (c != '>' && c != '<' && c != '~')
return base_lexer::word (st, sep);
get ();