aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-26 09:53:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-03 15:23:09 +0200
commit57c4e39dcb8eb6013e22cfe82597111c5c6a55af (patch)
treeeaf81473dbda167a187f01a632d39ba2f4908c71 /build2/parser.hxx
parent4b9de5c80934772dbc5503e65e265da452ca356a (diff)
Regularize directory target/scope-specific variable assignment syntax
Diffstat (limited to 'build2/parser.hxx')
-rw-r--r--build2/parser.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/parser.hxx b/build2/parser.hxx
index 1b39491..acf507e 100644
--- a/build2/parser.hxx
+++ b/build2/parser.hxx
@@ -117,7 +117,7 @@ namespace build2
void
parse_variable (token&, token_type&, const variable&, token_type);
- string
+ const variable&
parse_variable_name (names&&, const location&);
// Note: calls attributes_push() that the caller must pop.
@@ -368,6 +368,9 @@ namespace build2
// Customization hooks.
//
protected:
+ // If qual is not empty, then its pair member should indicate the kind
+ // of qualification: ':' -- target, '/' -- scope.
+ //
virtual lookup
lookup_variable (name&& qual, string&& name, const location&);