From 8b55e8151bd69e4ef11a67aff57618193f559618 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Dec 2015 12:16:29 +0200 Subject: 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. --- build/parser | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build/parser') 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 (); -- cgit v1.1