From cd40097447ff2400cb420ec973c16dadd26e6cda Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 28 Oct 2016 10:10:08 +0200 Subject: Implement description support in testscript --- build2/test/script/lexer | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'build2/test/script/lexer') diff --git a/build2/test/script/lexer b/build2/test/script/lexer index 53b88be..65ef297 100644 --- a/build2/test/script/lexer +++ b/build2/test/script/lexer @@ -25,11 +25,12 @@ namespace build2 enum { script_line = base_type::value_next, - first_token, // Auto-expires at the end of the token. - second_token, // Auto-expires at the end of the token. - variable_line, // Auto-expires at the end of the line. + first_token, // Expires at the end of the token. + second_token, // Expires at the end of the token. + variable_line, // Expires at the end of the line. command_line, - here_line + here_line, + description_line // Expires at the end of the line. }; lexer_mode () = default; @@ -64,6 +65,9 @@ namespace build2 token next_line (); + token + next_description (); + virtual token word (state, bool) override; -- cgit v1.1