diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-27 15:27:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-27 15:44:40 +0200 |
commit | 2a9204cab666d47770bf3809d95a689088019121 (patch) | |
tree | 32730291f7e6de8ef0a227905520dd66fb4ec0f3 /libbuild2/script/lexer.hxx | |
parent | d6581aa9be74e83cc689bfdaae9aaf2e78287975 (diff) |
Various minor fixes and cleanups
Diffstat (limited to 'libbuild2/script/lexer.hxx')
-rw-r--r-- | libbuild2/script/lexer.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
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<token_type> gg; // >> optional<token_type> 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 |