From 12268f7741ba73c75a73fafb6063f1393e485aae Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 27 Sep 2019 13:55:07 +0200 Subject: Add support for custom match/extract functions in switch expression --- libbuild2/lexer.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libbuild2/lexer.hxx') diff --git a/libbuild2/lexer.hxx b/libbuild2/lexer.hxx index a629ba7..72ec050 100644 --- a/libbuild2/lexer.hxx +++ b/libbuild2/lexer.hxx @@ -30,7 +30,10 @@ namespace build2 // groups in attributes). The eval mode is used in the evaluation context. // // A number of modes are "derived" from the value/values mode by recognizing - // a few extra characters: case_patterns (values plus '|'). + // a few extra characters: + // + // switch_expressions values plus `:` + // case_patterns values plus '|' // // Note that the normal, value/values and derived, as well as eval modes // split words separated by the pair character (to disable pairs one can @@ -61,6 +64,7 @@ namespace build2 value, values, case_patterns, + switch_expressions, attribute, eval, single_quoted, -- cgit v1.1