aboutsummaryrefslogtreecommitdiff
path: root/build2/lexer
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-11-11 10:01:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-11 10:01:16 +0200
commit8ad3ca4563b9a1c3daac37a86173789af03f68ba (patch)
tree3a9d8ce49e948720e1e1f847500f5ab5a66ae326 /build2/lexer
parenta084c6650036db9f2a8cd69e31492c5dae237793 (diff)
Get rid of lexer modes overriding pair separators
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_;