- fix: _Pragma is not correctly handled;

This commit is contained in:
Roy Qu 2022-11-12 10:45:53 +08:00
parent 58c9d686ce
commit a4cb52fb96
2 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,7 @@ Red Panda C++ Version 2.4
- fix: inline functions are not correctly parsed; - fix: inline functions are not correctly parsed;
- fix: &operator= functions are not correctly parsed; - fix: &operator= functions are not correctly parsed;
- fix: Code Formatter's "add indent to continueous lines" option is not correctly saved. - fix: Code Formatter's "add indent to continueous lines" option is not correctly saved.
- fix: _Pragma is not correctly handled;
Red Panda C++ Version 2.3 Red Panda C++ Version 2.3

View File

@ -119,6 +119,7 @@ void initParser()
CppKeywords.insert("typeid",KeywordType::SkipNextParenthesis); CppKeywords.insert("typeid",KeywordType::SkipNextParenthesis);
CppKeywords.insert("while",KeywordType::SkipNextParenthesis); CppKeywords.insert("while",KeywordType::SkipNextParenthesis);
CppKeywords.insert("static_assert",KeywordType::SkipNextParenthesis); CppKeywords.insert("static_assert",KeywordType::SkipNextParenthesis);
CppKeywords.insert("_Pragma",KeywordType::SkipNextParenthesis);
// Skip to } // Skip to }
CppKeywords.insert("asm",KeywordType::MoveToRightBrace); CppKeywords.insert("asm",KeywordType::MoveToRightBrace);
@ -187,6 +188,7 @@ void initParser()
CppKeywords.insert("struct",KeywordType::None); CppKeywords.insert("struct",KeywordType::None);
CppKeywords.insert("union",KeywordType::None); CppKeywords.insert("union",KeywordType::None);
CppKeywords.insert("for",KeywordType::For); CppKeywords.insert("for",KeywordType::For);
CppKeywords.insert("catch",KeywordType::Catch); CppKeywords.insert("catch",KeywordType::Catch);
CppKeywords.insert("private",KeywordType::Private); CppKeywords.insert("private",KeywordType::Private);