diff options
Diffstat (limited to 'libbuild2/build/script/lexer.cxx')
-rw-r--r-- | libbuild2/build/script/lexer.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libbuild2/build/script/lexer.cxx b/libbuild2/build/script/lexer.cxx index 716d898..f5a7333 100644 --- a/libbuild2/build/script/lexer.cxx +++ b/libbuild2/build/script/lexer.cxx @@ -242,14 +242,19 @@ namespace build2 { lexer_mode m (st.mode); - // Customized implementation that handles special variable names ($>). + // 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 + // string of one-char special variable names as state::data? // if (m != lexer_mode::variable) return base_lexer::word (st, sep); xchar c (peek ()); - if (c != '>') + if (c != '>' && c != '<') return base_lexer::word (st, sep); get (); |