From 56310e83635a489d9dde3e9e0199caeb75f17e68 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sat, 13 Apr 2024 22:37:09 +0800 Subject: [PATCH] - fix: Can't show correct completion info for vars declared with template parameters ending with ">>". --- NEWS.md | 1 + RedPandaIDE/parser/cppparser.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS.md b/NEWS.md index f1ae9119..797380ef 100644 --- a/NEWS.md +++ b/NEWS.md @@ -140,6 +140,7 @@ Red Panda C++ Version 2.27 - fix: Size of the icons in problem and problem set panel are not correct. - fix: Shouldn't consider preceeding '&'/'*' when popping completion suggest list for variable members. - fix: Positions of current matching parenthesis not correctly updated. + - fix: Can't show correct completion info for vars declared with template parameters ending with ">>". Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/RedPandaIDE/parser/cppparser.cpp b/RedPandaIDE/parser/cppparser.cpp index 394835cd..87b36b5d 100644 --- a/RedPandaIDE/parser/cppparser.cpp +++ b/RedPandaIDE/parser/cppparser.cpp @@ -5804,6 +5804,8 @@ PStatement CppParser::doParseEvalTypeInfo( templateLevel++; } else if (token == ">") { templateLevel--; + } else if (token == ">>") { + templateLevel-=2; } templateParams += token; }