From 421a227d057ca41f429da6c60d6f0ed32825a7f0 Mon Sep 17 00:00:00 2001 From: West-Pavilion <111393157+West-Pavilion@users.noreply.github.com> Date: Fri, 22 Mar 2024 15:44:04 +0800 Subject: [PATCH] update the C++20 keyword "co_await" from "co_wait" (#299) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updated the Chinese translation for "Goto Page Start and Select" This PR updates the Chinese translation for "Goto Page Start and Select" to accurately reflect the functionality of the feature. 本次PR更新了“Goto Page Start and Select”的中文翻译,以准确反映该功能的操作。 * update the C++20 keyword "co_await" from "co_wait" The C++20 introduced a new keyword "co_await", however there is a tiny typo wrong("co_wait") in the current version of RedPanda-CPP. This PR is aimed to correct it. --- RedPandaIDE/parser/parserutils.cpp | 2 +- libs/qsynedit/qsynedit/syntaxer/cpp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RedPandaIDE/parser/parserutils.cpp b/RedPandaIDE/parser/parserutils.cpp index 3699b2ec..0f97fd0f 100644 --- a/RedPandaIDE/parser/parserutils.cpp +++ b/RedPandaIDE/parser/parserutils.cpp @@ -146,7 +146,7 @@ void initParser() CppKeywords.insert("atomic_noexcept",KeywordType::None); CppKeywords.insert("consteval",KeywordType::None); CppKeywords.insert("constinit",KeywordType::None); - CppKeywords.insert("co_wait",KeywordType::None); + CppKeywords.insert("co_await",KeywordType::None); CppKeywords.insert("co_return",KeywordType::None); CppKeywords.insert("co_yield",KeywordType::None); CppKeywords.insert("reflexpr",KeywordType::None); diff --git a/libs/qsynedit/qsynedit/syntaxer/cpp.cpp b/libs/qsynedit/qsynedit/syntaxer/cpp.cpp index e26cad7e..409f083f 100644 --- a/libs/qsynedit/qsynedit/syntaxer/cpp.cpp +++ b/libs/qsynedit/qsynedit/syntaxer/cpp.cpp @@ -116,7 +116,7 @@ const QSet CppSyntaxer::Keywords { "concept", "consteval", "constinit", - "co_wait", + "co_await", "co_return", "co_yield", "reflexpr",