From 66a782233011b662378c44a4c5a9ac4af78ce151 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 5 Mar 2020 20:59:48 +0300 Subject: Use utf8_validator for buildfile and testscript lexers --- libbuild2/lexer.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libbuild2/lexer.hxx b/libbuild2/lexer.hxx index 65a9ba6..93992b4 100644 --- a/libbuild2/lexer.hxx +++ b/libbuild2/lexer.hxx @@ -6,6 +6,7 @@ #include +#include #include #include @@ -88,7 +89,8 @@ namespace build2 lexer_mode (base_type v): base_type (v) {} }; - class LIBBUILD2_SYMEXPORT lexer: public butl::char_scanner<> + class LIBBUILD2_SYMEXPORT lexer: + public butl::char_scanner { public: // If escape is not NULL then only escape sequences with characters from @@ -220,7 +222,8 @@ namespace build2 namespace butl // ADL { inline build2::location - get_location (const butl::char_scanner<>::xchar& c, const void* data) + get_location (const butl::char_scanner::xchar& c, + const void* data) { using namespace build2; -- cgit v1.1