aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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