aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-textedit/syntax_rules/md.syntax
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2018-09-06 15:40:30 -0400
committerKen Moore <ken@ixsystems.com>2018-09-06 15:40:30 -0400
commitc72934ff962322e6593780052c4af528f3c75974 (patch)
treee5c60df84fd45461a491f3e1aa567d9220c6d481 /src-qt5/desktop-utils/lumina-textedit/syntax_rules/md.syntax
parentiFix a syntax issue with the cpp.json syntax ruleset (diff)
parentWhen a desktop is resized automatically re-do the wallpaper as well. (diff)
downloadlumina-c72934ff962322e6593780052c4af528f3c75974.tar.gz
lumina-c72934ff962322e6593780052c4af528f3c75974.tar.bz2
lumina-c72934ff962322e6593780052c4af528f3c75974.zip
Merge branch 'master' of github.com:lumina-desktop/lumina
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/syntax_rules/md.syntax')
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/syntax_rules/md.syntax12
1 files changed, 6 insertions, 6 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/syntax_rules/md.syntax b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/md.syntax
index 3cd0a7b6..a8e740a0 100644
--- a/src-qt5/desktop-utils/lumina-textedit/syntax_rules/md.syntax
+++ b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/md.syntax
@@ -22,39 +22,39 @@
},
{
"name": "bold and italic",
- "regex" : "[\\*]{3}(?!\\s)[^\\*\\_]+(?!\\s)[\\*]{3}",
+ "regex" : "(\\s|^)[[\\*]{3}(?!\\s)[^\\*\\_]+(?!\\s)[\\*]{3}(\\s|$)",
"foreground": "colors/altkeyword",
"font_weight" : "bold",
"font_style" : "italic"
},
{
"name": "bold",
- "regex" : "[\\*]{2}(?!\\s)[^\\*\\_]+(?!\\s)[\\*]{2}",
+ "regex" : "(\\s|^)[\\*]{2}(?!\\s)[^\\*\\_]+(?!\\s)[\\*]{2}(\\s|$)",
"foreground": "colors/altkeyword",
"font_weight" : "bold"
},
{
"name": "italic",
- "regex" : "[\\*](?!\\s){1}[^\\*\\_]+(?!\\s)[\\*]{1}",
+ "regex" : "(\\s|^)[\\*](?!\\s){1}[^\\*\\_]+(?!\\s)[\\*]{1}(\\s|$)",
"foreground": "colors/altkeyword",
"font_style" : "italic"
},
{
"name": "bold and italic",
- "regex" : "[_]{3}(?!\\s)[^\\*\\_]+(?!\\s)[_]{3}",
+ "regex" : "(\\s|^)[_]{3}(?!\\s)[^\\*\\_]+(?!\\s)[_]{3}(\\s|$)",
"foreground": "colors/altkeyword",
"font_weight" : "bold",
"font_style" : "italic"
},
{
"name": "bold",
- "regex" : "[_]{2}(?!\\s)[^\\*\\_]+(?!\\s)[_]{2}",
+ "regex" : "(\\s|^)[_]{2}(?!\\s)[^\\*\\_]+(?!\\s)[_]{2}(\\s|$)",
"foreground": "colors/altkeyword",
"font_weight" : "bold"
},
{
"name": "italic",
- "regex" : "[_]{1}(?!\\s)[^\\*\\_]+(?!\\s)[_]{1}",
+ "regex" : "(\\s|^)[_]{1}(?!\\s)[^\\*\\_]+(?!\\s)[_]{1}(\\s|$)",
"foreground": "colors/altkeyword",
"font_style" : "italic"
},
bgstack15