nano

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

commit 850e538ff7215272e7a810203b8a0382bdef5f24
parent 18419b5e3f9d91b30cb5c5d693ec09066ec08736
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 16 Aug 2018 19:55:03 +0200

syntax: python: avoid coloring the three special values inside strings

Reported-by: Benjamin Mintz <bmintz@protonmail.com>
Suggested-by: Brand Huntsman <alpha@qzx.com>

Diffstat:
Msyntax/python.nanorc | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/syntax/python.nanorc b/syntax/python.nanorc @@ -14,6 +14,9 @@ color brightcyan "\<(def|del|elif|else|except|exec|finally|for|from)\>" color brightcyan "\<(global|if|import|in|is|lambda|nonlocal|not|or)\>" color brightcyan "\<(pass|print|raise|return|try|while|with|yield)\>" +# Special values. +color brightmagenta "\<(False|None|True)\>" + # Single-quoted strings. color brightgreen "'([^'\]|\\.)+'" color brightgreen ""([^"\]|\\.)+"" @@ -23,9 +26,6 @@ color brightred "(^|[[:blank:]])#.*$" color brightgreen start="'''([^'),]|$)" end="(^|[^(\])'''" color brightgreen start="\"\"\"([^"),]|$)" end="(^|[^(\])\"\"\"" -# Special values. -color brightmagenta "\<(False|None|True)\>" - # Reminders. color brightwhite,yellow "(FIXME|TODO|XXX)"