diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp index 9997961b..60f5af57 100644 --- a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp @@ -67,7 +67,7 @@ void Custom_Syntax::loadRules(QString type){ } //Alternate Keywords (built-in functions) keywords.clear(); - keywords << "for" << "while" << "switch" << "case" << "if"; + keywords << "for" << "while" << "switch" << "case" << "if" << "else" << "return" << "exit"; rule.format.setForeground( QColor(settings->value("colors/altkeyword").toString()) ); for(int i=0; i<keywords.length(); i++){ rule.pattern = QRegExp("\\b"+keywords[i]+"\\b"); //turn each keyword into a QRegExp and insert the rule |