From dbfc59a48f79aa6484d3dcd8118b5c9def3bb226 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Tue, 6 Sep 2016 13:59:24 -0400 Subject: Add possible whitespace to the preprocessor rule for C/C++ code. --- src-qt5/desktop-utils/lumina-textedit/syntaxSupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) ); -- cgit