aboutsummaryrefslogtreecommitdiff
path: root/build2/lexer
diff options
context:
space:
mode:
Diffstat (limited to 'build2/lexer')
-rw-r--r--build2/lexer5
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/lexer b/build2/lexer
index abaf273..e9de617 100644
--- a/build2/lexer
+++ b/build2/lexer
@@ -137,8 +137,11 @@ namespace build2
token
next_quoted ();
+ // Lex a word assuming current is the top state (which may already have
+ // been "expired" from the top).
+ //
virtual token
- word (state, bool separated);
+ word (state current, bool separated);
// Return true if we have seen any spaces. Skipped empty lines
// don't count. In other words, we are only interested in spaces