aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/token.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-11-01 12:18:59 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:37 +0200
commit5583ffaa2581858cb7f7f75e28660bc038bcc8ec (patch)
tree72707ac943e4f2a5a0457869d7672db558940461 /build2/test/script/token.cxx
parent40a34dc212a5749350723ac4f390335c0c5283e3 (diff)
Add support for cleanup types to testscript parser
Diffstat (limited to 'build2/test/script/token.cxx')
-rw-r--r--build2/test/script/token.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/build2/test/script/token.cxx b/build2/test/script/token.cxx
index 1cd0859..79e64de 100644
--- a/build2/test/script/token.cxx
+++ b/build2/test/script/token.cxx
@@ -26,8 +26,11 @@ namespace build2
case token_type::plus: os << q << '+' << q; break;
case token_type::minus: os << q << '-' << q; break;
+ case token_type::clean_always: os << q << '&' << q; break;
+ case token_type::clean_maybe: os << q << "&?" << q; break;
+ case token_type::clean_never: os << q << "&!" << q; break;
+
case token_type::pipe: os << q << '|' << q; break;
- case token_type::clean: os << q << '&' << q; break;
case token_type::log_and: os << q << "&&" << q; break;
case token_type::log_or: os << q << "||" << q; break;