From a22418d7a6b1fa17cd4254f7ab5f531c3530b5a2 Mon Sep 17 00:00:00 2001 From: Thomas Rosenau Date: Sun, 28 Feb 2016 13:44:02 +0100 Subject: [PATCH] Fix broken Regex see https://github.com/nanorc/nanorc/blob/ebe557e5572a1144a314ef8525806e6ea1b5b9ec/markdown.nanorc#L12 --- markdown.nanorc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/markdown.nanorc b/markdown.nanorc index 5c513bd..2e6a3a0 100644 --- a/markdown.nanorc +++ b/markdown.nanorc @@ -6,12 +6,27 @@ color green "(^|[[:space:]])(_[^ ][^_]*_|\*[^ ][^*]*\*)" # Strong emphasis color brightgreen "(^|[[:space:]])(__[^ ][^_]*__|\*\*[^ ][^*]*\*\*)" +# headlines color brightmagenta "^=====*$|^-----*$|^#{1,6}.*" + +# lists color blue "^[[:space:]]*[\*+-] |^[[:space:]]*[0-9]+\. " + +# leading whitespace color black "^[[:space:]]+" -color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($$)" + +# misc +color magenta "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])" + +# images color brightyellow "\!?\[[^]]*\]([[:space:]]*\[[^]]*\]|\(.*\))?" + +# links color brightyellow "^\[.*\]:[[:space:]]*[^"]*" + +# code color yellow "`[^`]*`|^ {4}[^-+*].*" + +# quotes color brightblack "^>.*"