From 71c21911c4b4b2982fead9f86138336129cf84fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=C3=AFleurre?= <66210874+oileurre@users.noreply.github.com> Date: Mon, 8 Jun 2020 12:29:48 +0200 Subject: [PATCH] Fix collisions between lists and emphasis --- creole.nanorc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/creole.nanorc b/creole.nanorc index f86c203..cca97a6 100644 --- a/creole.nanorc +++ b/creole.nanorc @@ -3,10 +3,6 @@ syntax "Creole" "\.creole$" # Headers color magenta "^=.*=$" -# Emphasis -color yellow start="//" end="//" -color brightyellow start="\*\*" end="\*\*" - # Lists color green "^[#*]+\s.*" @@ -14,7 +10,13 @@ color green "^[#*]+\s.*" color cyan start="\[\[" end="\]\]" color cyan start="\{\{" end="\}\}" +# Emphasis +color yellow "//.*//" +color brightyellow "\*\*.*\*\*" + # Pre and tables color red start="\{\{\{" end="\}\}\}" color red "\|" color brightred "\|=" + +color ,red "\s+$"