diff --git a/syntax/python.nanorc b/syntax/python.nanorc index 4e3e75ed..66dc8c84 100644 --- 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)"