aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-09-06 13:59:24 -0400
committerKen Moore <ken@pcbsd.org>2016-09-06 13:59:24 -0400
commitdbfc59a48f79aa6484d3dcd8118b5c9def3bb226 (patch)
treed430f03dba19605315672844a655f1f79f9bca70
parentFix the 1-character-line detection/usage for syntax highlighting. (diff)
downloadlumina-dbfc59a48f79aa6484d3dcd8118b5c9def3bb226.tar.gz
lumina-dbfc59a48f79aa6484d3dcd8118b5c9def3bb226.tar.bz2
lumina-dbfc59a48f79aa6484d3dcd8118b5c9def3bb226.zip
Add possible whitespace to the preprocessor rule for C/C++ code.
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp2
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 695730f7..3b4dd003 100644
--- a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp
+++ b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp
@@ -88,7 +88,7 @@ void Custom_Syntax::loadRules(QString type){
rules << rule;
//Proprocessor commands
rule.format.setForeground( QColor(settings->value("colors/preprocessor").toString()) );
- rule.pattern = QRegExp("^#[^\n]*");
+ rule.pattern = QRegExp("^[\\s]*#[^\n]*");
rules << rule;
//Comment (single line)
rule.format.setForeground( QColor(settings->value("colors/comment").toString()) );
bgstack15