From 4b31ef06275ad423e48a75d15fb0ee21c3127e3c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 29 Nov 2016 15:28:47 +0200 Subject: Fix escaping issue, propagate quoting for $ and ( tokens --- build2/lexer | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build2/lexer') 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 escapes = nullopt); // Expire the current mode early. // -- cgit v1.1