@@ -231,17 +231,18 @@ Highlighter::Highlighter(QTextDocument *parent)
231231 keywordFormat.setForeground (Qt::green);
232232 keywordFormat.setFontWeight (QFont::Bold);
233233 QStringList keywordPatterns;
234- keywordPatterns << " \\ bchar \\ b" << " \\ bclass\\ b" << " \\ bconst \\ b"
235- << " \\ bdouble \\ b" << " \\ benum \\ b" << " \\ bexplicit \\ b"
236- << " \\ bfriend \\ b" << " \\ binline \\ b" << " \\ bint \\ b"
234+ keywordPatterns << " \\ band \\ b" << " \\ bclass\\ b" << " \\ bassert \\ b"
235+ << " \\ bbreak \\ b" << " \\ bas \\ b" << " \\ bcontinue \\ b"
236+ << " \\ bdef \\ b" << " \\ bdel \\ b" << " \\ belif \\ b"
237237 << " \\ blong\\ b" << " \\ bnamespace\\ b" << " \\ boperator\\ b"
238- << " \\ bprivate\\ b" << " \\ bprotected\\ b" << " \\ bpublic\\ b"
239- << " \\ bshort\\ b" << " \\ bsignals\\ b" << " \\ bsigned\\ b"
240- << " \\ bslots\\ b" << " \\ bstatic\\ b" << " \\ bstruct\\ b"
241- << " \\ btemplate\\ b" << " \\ btypedef\\ b" << " \\ btypename\\ b"
242- << " \\ bunion\\ b" << " \\ bunsigned\\ b" << " \\ bvirtual\\ b"
243- << " \\ bvoid\\ b" << " \\ bvolatile\\ b" << " \\ bfor\\ b" << " \\ bin\\ b"
244- << " \\ bTrue\\ b" << " \\ bFalse\\ b" ;
238+ << " \\ belse\\ b" << " \\ bexcept\\ b" << " \\ bexec\\ b"
239+ << " \\ bfinally\\ b" << " \\ bfrom\\ b" << " \\ bimport\\ b"
240+ << " \\ bglobal\\ b" << " \\ bif\\ b" << " \\ bis\\ b"
241+ << " \\ blambda\\ b" << " \\ bnot\\ b" << " \\ bor\\ b"
242+ << " \\ bpass\\ b" << " \\ braise\\ b" << " \\ breturn\\ b"
243+ << " \\ btry\\ b" << " \\ bwhile\\ b" << " \\ bfor\\ b" << " \\ bin\\ b"
244+ << " \\ bwith\\ b" << " \\ byield\\ b"
245+ << " \\ bTrue\\ b" << " \\ bFalse\\ b" << " \\ bNone\\ b" ;
245246 for (const auto & pattern : keywordPatterns)
246247 {
247248 rule.pattern = QRegExp (pattern);
0 commit comments