aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/lexer.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-05-26 14:55:40 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 14:38:01 +0200
commitd6581aa9be74e83cc689bfdaae9aaf2e78287975 (patch)
treee741d2c6fcdb567d8c7b897d17f3f0ca2358d307 /libbuild2/build/script/lexer.cxx
parente6470e37093084251b7ee60a904a78e54d13e31b (diff)
Create build script temporary directory on demand
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 ();