From ce29e3d72ded432b9ac9354ac92c588142de9b89 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Mar 2020 08:40:59 +0200 Subject: Lexer support for default value assignment (?=) Note: not yet supported in the parser. --- libbuild2/token.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'libbuild2/token.cxx') diff --git a/libbuild2/token.cxx b/libbuild2/token.cxx index 0f9a189..4975a02 100644 --- a/libbuild2/token.cxx +++ b/libbuild2/token.cxx @@ -41,6 +41,7 @@ namespace build2 case token_type::assign: os << q << '=' << q; break; case token_type::prepend: os << q << "=+" << q; break; case token_type::append: os << q << "+=" << q; break; + case token_type::default_assign: os << q << "?=" << q; break; case token_type::equal: os << q << "==" << q; break; case token_type::not_equal: os << q << "!=" << q; break; -- cgit v1.1