diff options
author | Ken Moore <ken@pcbsd.org> | 2016-09-06 13:59:24 -0400 |
---|---|---|
committer | Ken Moore <ken@pcbsd.org> | 2016-09-06 13:59:24 -0400 |
commit | dbfc59a48f79aa6484d3dcd8118b5c9def3bb226 (patch) | |
tree | d430f03dba19605315672844a655f1f79f9bca70 /src-qt5/desktop-utils/lumina-textedit | |
parent | Fix the 1-character-line detection/usage for syntax highlighting. (diff) | |
download | lumina-dbfc59a48f79aa6484d3dcd8118b5c9def3bb226.tar.gz lumina-dbfc59a48f79aa6484d3dcd8118b5c9def3bb226.tar.bz2 lumina-dbfc59a48f79aa6484d3dcd8118b5c9def3bb226.zip |
Add possible whitespace to the preprocessor rule for C/C++ code.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit')
-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 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()) ); |