aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/lexer.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-09-27 13:55:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-09-30 15:30:45 +0200
commit12268f7741ba73c75a73fafb6063f1393e485aae (patch)
treec80fe4918c18702f6cb199c9016366338f8f5061 /libbuild2/lexer.hxx
parente59c2bc979293d8cdea3f9733ecd59c080fce63c (diff)
Add support for custom match/extract functions in switch expression
Diffstat (limited to 'libbuild2/lexer.hxx')
-rw-r--r--libbuild2/lexer.hxx6
1 files changed, 5 insertions, 1 deletions
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,