diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-28 10:10:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:36 +0200 |
commit | cd40097447ff2400cb420ec973c16dadd26e6cda (patch) | |
tree | bcd1c902d487e7a60ffffd5b02b7c608829fbc57 /build2/test/script/lexer | |
parent | e61874e76052d3600d6f10807248f92935f3dd61 (diff) |
Implement description support in testscript
Diffstat (limited to 'build2/test/script/lexer')
-rw-r--r-- | build2/test/script/lexer | 12 |
1 files changed, 8 insertions, 4 deletions
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; |