diff options
author | Ken Moore <moorekou@gmail.com> | 2016-04-19 13:53:17 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-04-19 13:53:17 -0400 |
commit | 2ac52279a091b1e4a81df199d302e12c8e2cad3e (patch) | |
tree | 5c6bf9cd643cb9379c14dd69f12389fbe27c2685 /desktop-utilities/lumina-textedit/syntaxSupport.cpp | |
parent | Some more work on lumina-textedit. (diff) | |
download | lumina-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.cpp | 4 |
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); |