diff --git a/src/libs/cplusplus/SimpleLexer.cpp b/src/libs/cplusplus/SimpleLexer.cpp index dc1cc6c51d3..9c26f9e8fae 100644 --- a/src/libs/cplusplus/SimpleLexer.cpp +++ b/src/libs/cplusplus/SimpleLexer.cpp @@ -134,6 +134,9 @@ QList SimpleLexer::operator()(const QString &text, int state) else if (inPreproc && tokens.size() == 1 && tk.is(T_IDENTIFIER) && spell == QLatin1String("include")) lex.setScanAngleStringLiteralTokens(true); + else if (inPreproc && tokens.size() == 1 && tk.is(T_IDENTIFIER) && + spell == QLatin1String("include_next")) + lex.setScanAngleStringLiteralTokens(true); else if (_objCEnabled && inPreproc && tokens.size() == 1 && tk.is(T_IDENTIFIER) && spell == QLatin1String("import"))