diff options
author | Ken Moore <ken@pcbsd.org> | 2016-09-06 13:19:58 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-09-06 13:19:58 -0400 |
commit | 067953bb48b05c6627883a4ec9b3906b72f93973 (patch) | |
tree | a238295d1205ca97a0f7455b133fee002859468a /src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp | |
parent | Quick fix to OS-detect.pri: If LINUX_DISTRO was manually set through qmake, d... (diff) | |
download | lumina-067953bb48b05c6627883a4ec9b3906b72f93973.tar.gz lumina-067953bb48b05c6627883a4ec9b3906b72f93973.tar.bz2 lumina-067953bb48b05c6627883a4ec9b3906b72f93973.zip |
Clean up a bit more of the syntaxhighlighting rules - ensuring that single-line rules are skipped if they start within a multi-line rule block.
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 |