aboutsummaryrefslogtreecommitdiff
path: root/build2/lexer
diff options
context:
space:
mode:
Diffstat (limited to 'build2/lexer')
-rw-r--r--build2/lexer9
1 files changed, 4 insertions, 5 deletions
diff --git a/build2/lexer b/build2/lexer
index f0a0fa6..a539c2d 100644
--- a/build2/lexer
+++ b/build2/lexer
@@ -81,12 +81,11 @@ namespace build2
const path&
name () const {return fail.name_;}
- // Note: sets mode for the next token. The second argument can be used
- // to specify an alternative separator character (if the mode supports
- // pair separators).
+ // Note: sets mode for the next token. The second argument can be used to
+ // specifythe pair separator character (if the mode supports pairs).
//
virtual void
- mode (lexer_mode, char pair_separator = '@');
+ mode (lexer_mode, char pair_separator = '\0');
// Expire the current mode early.
//
@@ -186,7 +185,7 @@ namespace build2
sep_ (false)
{
if (sm)
- mode (lexer_mode::normal);
+ mode (lexer_mode::normal, '@');
}
const char* escapes_;