aboutsummaryrefslogtreecommitdiff
path: root/build/lexer
diff options
context:
space:
mode:
Diffstat (limited to 'build/lexer')
-rw-r--r--build/lexer6
1 files changed, 4 insertions, 2 deletions
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};
};
}