From 7038480323ae7fb7430d2b0d3319a030f4f0c281 Mon Sep 17 00:00:00 2001 From: Benjamin Mintz Date: Tue, 14 Aug 2018 22:57:16 -0500 Subject: [PATCH] [syntax] remove special coloring for None, False, and True Their value is well known by the programmer such that it doesn't need calling out. they may be keywords but they're closer to values than keywords, and need highlighting no more than any other value. On top of that, they were being highlighted inside of strings, and fixing that is more trouble than it's worth. Signed-off-by: Benjamin Mintz --- syntax/python.nanorc | 3 --- 1 file changed, 3 deletions(-) diff --git a/syntax/python.nanorc b/syntax/python.nanorc index 4e3e75ed..6e8cd7bd 100644 --- a/syntax/python.nanorc +++ b/syntax/python.nanorc @@ -23,9 +23,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)" -- 2.17.1