From 65664ba5a6241e9c58d846cde6ed9fcbbe53d2cd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 2 Mar 2015 14:48:21 +0200 Subject: Implement variable expansion --- build/lexer | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build/lexer') diff --git a/build/lexer b/build/lexer index 67a94c8..d6817f2 100644 --- a/build/lexer +++ b/build/lexer @@ -111,9 +111,11 @@ namespace build // Context-dependent lexing mode. In the value mode we don't treat // certain characters (e.g., +, =) as special so that we can use - // them in the variable values, e.g., 'foo = g++'. + // them in the variable values, e.g., 'foo = g++'. In contrast, + // in the variable mode, we restrict certain character (e.g., /) + // from appearing in the name. // - enum class mode {normal, value}; + enum class mode {normal, value, variable}; mode mode_ {mode::normal}; }; } -- cgit v1.1