diff --git a/NEWS.md b/NEWS.md index b281aced..18069b07 100644 --- a/NEWS.md +++ b/NEWS.md @@ -122,6 +122,7 @@ Red Panda C++ Version 2.27 - fix: Project options -> file doesn't work. - fix: Don't show function prototype tip for function name that contains more than one namespace; - fix: Compiler set options "Check for stack smashing attacks (-fstack-protector)" was not correctly applied when compiling. + - fix: can't jump to definition/declaration for symbols in using alias statement like "using ::printf". Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 5adb6453..f091497c 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -2423,6 +2423,8 @@ QStringList Editor::getExpressionAtPosition( } for (int i=tokens.count()-1;i>=0;i--) { QString token = tokens[i]; + if (token=="using") + return result; switch(lastSymbolType) { case LastSymbolType::ScopeResolutionOperator: //before '::' if (token==">") { diff --git a/libs/qsynedit/qsynedit/qsynedit.cpp b/libs/qsynedit/qsynedit/qsynedit.cpp index 855715c4..e2ce2be5 100644 --- a/libs/qsynedit/qsynedit/qsynedit.cpp +++ b/libs/qsynedit/qsynedit/qsynedit.cpp @@ -16,7 +16,7 @@ */ #include "qsynedit.h" #include "document.h" -#include "syntaxer/syntaxer.h"" +#include "syntaxer/syntaxer.h" #include #include #include