aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/lexer
diff options
context:
space:
mode:
Diffstat (limited to 'build2/test/script/lexer')
-rw-r--r--build2/test/script/lexer12
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;