- enhancement: ignore '__extension__' when parsing C/C++ codes.

This commit is contained in:
Roy Qu 2023-05-25 18:19:18 +08:00
parent 3d138e3ac5
commit 3440b08d8d
2 changed files with 4 additions and 0 deletions

View File

@ -1,10 +1,12 @@
Red Panda C++ Version 2.22 Red Panda C++ Version 2.22
- enhancement: ignore '__extension__' when parsing C/C++ codes.
- fix: Crash at startup when current problem in the problem set is connected with source file. - fix: Crash at startup when current problem in the problem set is connected with source file.
- fix: Double-clicking on touchpad can't select current word. - fix: Double-clicking on touchpad can't select current word.
- fix: foreach-loops are not correctly parsed. - fix: foreach-loops are not correctly parsed.
- fix: '^' is not correctly handled as operator. - fix: '^' is not correctly handled as operator.
- fix: lambda expression is not correctly handled. - fix: lambda expression is not correctly handled.
Red Panda C++ Version 2.21 Red Panda C++ Version 2.21

View File

@ -72,6 +72,8 @@ void initParser()
CppKeywords.insert("explicit",KeywordType::SkipItself); CppKeywords.insert("explicit",KeywordType::SkipItself);
CppKeywords.insert("export",KeywordType::SkipItself); CppKeywords.insert("export",KeywordType::SkipItself);
CppKeywords.insert("false",KeywordType::SkipItself); CppKeywords.insert("false",KeywordType::SkipItself);
CppKeywords.insert("__extension__",KeywordType::SkipItself);
//CppKeywords.insert("for",SkipType::skItself); //CppKeywords.insert("for",SkipType::skItself);
CppKeywords.insert("mutable",KeywordType::SkipItself); CppKeywords.insert("mutable",KeywordType::SkipItself);
CppKeywords.insert("noexcept",KeywordType::SkipItself); CppKeywords.insert("noexcept",KeywordType::SkipItself);