aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/lexer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/lexer.cxx')
-rw-r--r--libbuild2/lexer.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/libbuild2/lexer.cxx b/libbuild2/lexer.cxx
index 17b0c7d..61d7fbf 100644
--- a/libbuild2/lexer.cxx
+++ b/libbuild2/lexer.cxx
@@ -63,8 +63,8 @@ namespace build2
}
case lexer_mode::case_patterns:
{
- s1 = " $(){}[],|#\t\n";
- s2 = " ";
+ s1 = " $(){}[],|:#\t\n";
+ s2 = " ";
break;
}
case lexer_mode::attribute:
@@ -201,9 +201,10 @@ namespace build2
// The following characters are special in the normal, variable, and
// switch_expressions modes.
//
- if (m == lexer_mode::normal ||
- m == lexer_mode::variable ||
- m == lexer_mode::switch_expressions)
+ if (m == lexer_mode::normal ||
+ m == lexer_mode::variable ||
+ m == lexer_mode::switch_expressions ||
+ m == lexer_mode::case_patterns)
{
switch (c)
{