diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-29 15:28:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-29 15:28:47 +0200 |
commit | 4b31ef06275ad423e48a75d15fb0ee21c3127e3c (patch) | |
tree | 7cb5b1358dcb7c1650215ad319593f485d9a0caa /build2/lexer | |
parent | 97d5397a8079fc0ece521e0c36e313043bc22b12 (diff) |
Fix escaping issue, propagate quoting for $ and ( tokens
Diffstat (limited to 'build2/lexer')
-rw-r--r-- | build2/lexer | 6 |
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. // |