From: Matthias Braun Date: Sun, 27 May 2012 22:10:21 +0000 (+0200) Subject: preprocessor: scanning for :: token was missing X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=1a01d49a5f4858ede8175221921be0e3719ea2a6;p=cparser preprocessor: scanning for :: token was missing --- diff --git a/preprocessor.c b/preprocessor.c index e1c5d0e..9425292 100644 --- a/preprocessor.c +++ b/preprocessor.c @@ -1043,6 +1043,13 @@ digraph_percentcolon: case ':': MAYBE_PROLOG MAYBE_DIGRAPH('>', ']', symbol_colongreater) + case ':': + if (c_mode & _CXX) { + next_char(); + set_punctuator(T_COLONCOLON); + return; + } + /* FALLTHROUGH */ ELSE(':') case '=': MAYBE_PROLOG