commit ddb8e95d398801e11c466239c8a4ef0c766af777
parent fbac4505cea9857eba4b977b23c9876cac6c1b7d
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 10 Dec 2017 14:27:21 +0100
syntax: python: color also the special values 'False', 'None', 'True'
And increase the contrast for the reminders, both for PO and Python.
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/syntax/po.nanorc b/syntax/po.nanorc
@@ -24,6 +24,6 @@ color brightmagenta "%([1-9]\$)?[a-z]*"
color yellow "\""
color cyan "\\n"
# Reminders.
-color ,yellow "(FIXME|TODO|XXX)"
+color brightwhite,yellow "(FIXME|TODO|XXX)"
# Obsolete strings.
color red "#~.*$"
diff --git a/syntax/python.nanorc b/syntax/python.nanorc
@@ -23,8 +23,11 @@ color brightred "(^|[[:blank:]])#.*$"
color brightgreen start="'''([^'),]|$)" end="(^|[^(\])'''"
color brightgreen start="\"\"\"([^"),]|$)" end="(^|[^(\])\"\"\""
+# Special values.
+color brightmagenta "\<(False|None|True)\>"
+
# Reminders.
-color ,yellow "(FIXME|TODO|XXX)"
+color brightwhite,yellow "(FIXME|TODO|XXX)"
# Trailing whitespace.
color ,green "[[:space:]]+$"