aboutsummaryrefslogtreecommitdiff
path: root/build2/token
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-16 12:10:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:21 +0200
commitfa47916a51f530a4c728063f71b0e8d6da4dac0f (patch)
tree03ec81a4f9192d9400f8ec7d5d1f4c967ae05b6d /build2/token
parentb9007109a1b6044f5b3239ccacc10946c94c46f4 (diff)
Add support for lexer name scanning customization
Diffstat (limited to 'build2/token')
-rw-r--r--build2/token4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/token b/build2/token
index 065429c..18d377d 100644
--- a/build2/token
+++ b/build2/token
@@ -82,10 +82,10 @@ namespace build2
line (l), column (c),
printer (p) {}
- token (string n, bool s, bool q, uint64_t l, uint64_t c, printer_type* p)
+ token (string n, bool s, bool q, uint64_t l, uint64_t c)
: type (token_type::name), separated (s), quoted (q), value (move (n)),
line (l), column (c),
- printer (p) {}
+ printer (&token_printer) {}
};
// Output the token value in a format suitable for diagnostics.