diff options
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.syntax | 34 |
1 files changed, 22 insertions, 12 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 89146c62..2ba4bca7 100644 --- a/src-qt5/desktop-utils/lumina-textedit/syntax_rules/md.syntax +++ b/src-qt5/desktop-utils/lumina-textedit/syntax_rules/md.syntax @@ -21,44 +21,44 @@ "foreground": "colors/keyword" }, { + "name": "bold and italic", + "regex" : "[\\*]{3}(?!\\s)[^\\*\\_]+(?!\\s)[\\*]{3}", + "foreground": "colors/altkeyword", + "font_weight" : "bold", + "font_style" : "italic" + }, + { "name": "bold", - "regex" : "[\\*]{2}[^\\*\\_\\s]+[\\*]{2}", + "regex" : "[\\*]{2}(?!\\s)[^\\*\\_]+(?!\\s)[\\*]{2}", "foreground": "colors/altkeyword", "font_weight" : "bold" }, { "name": "italic", - "regex" : "[\\*]{1}[^\\*\\_\\s]+[\\*]{1}", + "regex" : "[\\*](?!\\s){1}[^\\*\\_]+(?!\\s)[\\*]{1}", "foreground": "colors/altkeyword", "font_style" : "italic" }, { "name": "bold and italic", - "regex" : "[\\*]{3}[^\\s]*[^\\*\\_]+[^\\s]*[\\*]{3}", + "regex" : "[_]{3}(?!\\s)[^\\*\\_]+(?!\\s)[_]{3}", "foreground": "colors/altkeyword", "font_weight" : "bold", "font_style" : "italic" }, { "name": "bold", - "regex" : "[_]{2}[^\\*\\_\\s]+[_]{2}", + "regex" : "[_]{2}(?!\\s)[^\\*\\_]+(?!\\s)[_]{2}", "foreground": "colors/altkeyword", "font_weight" : "bold" }, { "name": "italic", - "regex" : "[_]{1}[^\\*\\_\\s]+[_]{1}", + "regex" : "[_]{1}(?!\\s)[^\\*\\_]+(?!\\s)[_]{1}", "foreground": "colors/altkeyword", "font_style" : "italic" }, { - "name": "bold and italic", - "regex" : "[_]{3}[^\\s]*[^\\*\\_]+[^\\s]*[_]{3}", - "foreground": "colors/altkeyword", - "font_weight" : "bold", - "font_style" : "italic" - }, - { "name" : "markup", "regex": "<[a-z].*><\\/[a-z]>", "foreground" : "colors/class" @@ -88,6 +88,16 @@ "name" : "block quote", "regex" : "^(\\> )+", "foreground" : "colors/keyword" + }, + { + "name" : "lists", + "regex" : "^\\s*([0-9].|[\\*\\+\\-]{1})\\s+", + "foreground" : "colors/function" + }, + { + "name" : "text", + "regex": "\"[^\"\\\\]*(\\\\(.|\\n)[^\"\\\\]*)*\"|'[^'\\\\]*(\\\\(.|\\n)[^'\\\\]*)*'", + "foreground" : "colors/text" } ] } |