From 427efeae13912b66e1c030c7645a2b1f322dff4d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 25 May 2017 15:40:06 +0200 Subject: Fix few bugs in C++ lexer and parser --- build2/cc/lexer.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/cc/lexer.hxx') diff --git a/build2/cc/lexer.hxx b/build2/cc/lexer.hxx index 146b579..7865a4e 100644 --- a/build2/cc/lexer.hxx +++ b/build2/cc/lexer.hxx @@ -85,7 +85,7 @@ namespace build2 next () { token t; - next (t, skip_spaces ()); + next (t, skip_spaces (), true); return t; } @@ -98,13 +98,13 @@ namespace build2 token_type next (token& t) { - next (t, skip_spaces ()); + next (t, skip_spaces (), true); return t.type; } private: void - next (token&, xchar); + next (token&, xchar, bool); void number_literal (token&, xchar); -- cgit v1.1