aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2016-09-16 19:38:09 +0000
committerWeblate <noreply@weblate.org>2016-09-16 19:38:09 +0000
commit531690a5121ed0393127eaa7506e57ae5097c338 (patch)
treea4a1eb081ea417d0bdc768d2cabc50d91770f319 /src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h
parentTranslated using Weblate (lumina_CONFIG@fa (generated)) (diff)
parentAdd syntax highlighting for "shell" files (.sh) (diff)
downloadlumina-531690a5121ed0393127eaa7506e57ae5097c338.tar.gz
lumina-531690a5121ed0393127eaa7506e57ae5097c338.tar.bz2
lumina-531690a5121ed0393127eaa7506e57ae5097c338.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h
index 781ff65d..f834e275 100644
--- a/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h
+++ b/src-qt5/desktop-utils/lumina-textedit/syntaxSupport.h
@@ -101,7 +101,7 @@ protected:
if(splitactive>=0 || index<start){ continue; } //skip this one - falls within a multi-line pattern above
while(index>=0){
int len = patt.matchedLength();
- setFormat(index, len, rules[i].format);
+ if(format(index)==currentBlock().charFormat()){ setFormat(index, len, rules[i].format); } //only apply highlighting if not within a section already
index = patt.indexIn(text, index+len); //go to the next match
}
}//end loop over normal (single-line) patterns
bgstack15