aboutsummaryrefslogtreecommitdiff
path: root/desktop-utilities/lumina-textedit/syntaxSupport.cpp
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-04-19 13:53:17 -0400
committerKen Moore <moorekou@gmail.com>2016-04-19 13:53:17 -0400
commit2ac52279a091b1e4a81df199d302e12c8e2cad3e (patch)
tree5c6bf9cd643cb9379c14dd69f12389fbe27c2685 /desktop-utilities/lumina-textedit/syntaxSupport.cpp
parentSome more work on lumina-textedit. (diff)
downloadlumina-2ac52279a091b1e4a81df199d302e12c8e2cad3e.tar.gz
lumina-2ac52279a091b1e4a81df199d302e12c8e2cad3e.tar.bz2
lumina-2ac52279a091b1e4a81df199d302e12c8e2cad3e.zip
Get find/replace support fully implemented.
Diffstat (limited to 'desktop-utilities/lumina-textedit/syntaxSupport.cpp')
-rw-r--r--desktop-utilities/lumina-textedit/syntaxSupport.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-utilities/lumina-textedit/syntaxSupport.cpp b/desktop-utilities/lumina-textedit/syntaxSupport.cpp
index 2d00201f..1e3f796b 100644
--- a/desktop-utilities/lumina-textedit/syntaxSupport.cpp
+++ b/desktop-utilities/lumina-textedit/syntaxSupport.cpp
@@ -152,12 +152,12 @@ void Custom_Syntax::loadRules(QString type){
// Strong Emphasis
rule.format.setFontItalic(false);
rule.format.setFontWeight(QFont::Bold);
- rule.pattern = QRegExp("\\b[*]{2}.*[*]{2}\\b");
+ rule.pattern = QRegExp("\\b[*]{2}[^*\n]+[*]{2}\\b");
rules << rule;
// Emphasis
rule.format.setFontItalic(true);
rule.format.setFontWeight(QFont::Normal);
- rule.pattern = QRegExp("\\b[*].+[*]\\b");
+ rule.pattern = QRegExp("\\b[*][^*\n]+[*]\\b");
rules << rule;
// Code Sample
rule.format.setFontItalic(false);
bgstack15