nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f04c1a6ab5af59a769e617d2746b5815c01a38b8
parent 6393edf40ab44b2bbbb1b4a90a74581c24043af7
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Sun, 15 Dec 2024 11:31:06 +0100

syntax: markdown: accept also digit 0 in a list marker

For ordered lists, 10., 20., 30., ... were not getting colorized.

Also, https://daringfireball.net/projects/markdown/dingus
accepts 0. by itself just fine as marker.

This addresses https://savannah.gnu.org/patch/?10492.

Diffstat:
Msyntax/markdown.nanorc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syntax/markdown.nanorc b/syntax/markdown.nanorc @@ -10,7 +10,7 @@ comment "<!--|-->" color magenta "^[ ]*>.*" # List-item markers: -color brightmagenta "^( | )* ? ? ?(\*|\+|-|[1-9]+\.)( +| )" +color brightmagenta "^( | )* ? ? ?(\*|\+|-|[0-9]+\.)( +| )" # Emphasis and strong: color green "\*[^* ][^*]*\*|_[^_ ][^_]*_"