From 2a9204cab666d47770bf3809d95a689088019121 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 27 May 2020 15:27:57 +0200 Subject: Various minor fixes and cleanups --- libbuild2/script/lexer.hxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libbuild2/script/lexer.hxx') diff --git a/libbuild2/script/lexer.hxx b/libbuild2/script/lexer.hxx index bdeba66..dbfdfcc 100644 --- a/libbuild2/script/lexer.hxx +++ b/libbuild2/script/lexer.hxx @@ -33,7 +33,8 @@ namespace build2 lexer_mode (base_type v): base_type (v) {} }; - // Redirects the <, <<, <<<, >, >>, and >>> aliases resolve to. + // Actual redirects (as tokens) for the the <, <<, <<<, and >, >>, >>> + // aliases. // struct redirect_aliases { @@ -44,9 +45,10 @@ namespace build2 optional gg; // >> optional ggg; // >>> - // If the token type is a redirect alias then return the token type - // it resolves to and the passed type otherwise. It's the caller's - // responsibility to make sure that the corresponding alias is present. + // If the token type is a redirect alias then return the token type it + // resolves to and the passed token type otherwise. Note that it's the + // caller's responsibility to make sure that the corresponding alias is + // present (normally by not recognizing absent aliases as tokens). // token_type resolve (token_type t) const noexcept -- cgit v1.1