aboutsummaryrefslogtreecommitdiff
path: root/build/parser
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-07 12:16:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-07 12:16:29 +0200
commit8b55e8151bd69e4ef11a67aff57618193f559618 (patch)
treee420000affbf3c6d7016470649d2cc711b883c7a /build/parser
parentc092793e74d0778b0aff653860f274c8cc31c374 (diff)
Add support for specifying minimum required build2 version
The syntax is: using build@0.1.0-a1 The idea is that we will later also use it for modules and 'build' is a special, the "build system itself" module. Also fix a problem with peeking and lexer mode switching.
Diffstat (limited to 'build/parser')
-rw-r--r--build/parser3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/parser b/build/parser
index f3f88d5..08d587a 100644
--- a/build/parser
+++ b/build/parser
@@ -164,6 +164,9 @@ namespace build
token_type
next (token&, token_type&);
+ // Be careful with peeking and switching the lexer mode. See keyword()
+ // for more information.
+ //
token_type
peek ();