aboutsummaryrefslogtreecommitdiff
path: root/build2/lexer
diff options
context:
space:
mode:
Diffstat (limited to 'build2/lexer')
-rw-r--r--build2/lexer6
1 files changed, 4 insertions, 2 deletions
diff --git a/build2/lexer b/build2/lexer
index e2cf07c..ad00e83 100644
--- a/build2/lexer
+++ b/build2/lexer
@@ -82,12 +82,14 @@ namespace build2
name () const {return name_;}
// Note: sets mode for the next token. The second argument can be used to
- // specifythe pair separator character (if the mode supports pairs).
+ // specifythe pair separator character (if the mode supports pairs). If
+ // escapes not specified, then inherit the current mode's (thought a mode
+ // can also override it).
//
virtual void
mode (lexer_mode,
char pair_separator = '\0',
- const char* escapes = nullptr);
+ optional<const char*> escapes = nullopt);
// Expire the current mode early.
//