diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-25 15:40:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-25 15:40:06 +0200 |
commit | 427efeae13912b66e1c030c7645a2b1f322dff4d (patch) | |
tree | cb263ab770942ebbba3ea631288385b392c4e08c /build2/cc/lexer.hxx | |
parent | 71d9aedda0919fb22e39d6e6ce60506ceb69812e (diff) |
Fix few bugs in C++ lexer and parser
Diffstat (limited to 'build2/cc/lexer.hxx')
-rw-r--r-- | build2/cc/lexer.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
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); |