From 871450887a0ce5891c3826117caec1d188cfbe30 Mon Sep 17 00:00:00 2001 From: Mal Date: Mon, 23 May 2022 00:19:22 +0200 Subject: [PATCH] Reminder for redundant white spaces added --- python.nanorc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python.nanorc b/python.nanorc index 1fba73e..1cd7a8c 100644 --- a/python.nanorc +++ b/python.nanorc @@ -22,6 +22,7 @@ color orange "def \w+\(.*\)( *-> *\w+){0,1}:" # Function/method names on definitions color green "def \w+\(" +color green "@\w+" # Statements color brightcyan "\<(class|def|import|from|return|for|while|global|in|if|elif|else|raise|is|not|and|or|with|continue|break|try|except|finally|pass|yield)\>" @@ -49,3 +50,6 @@ color yellow "'([^'\]|\\.)*'|"([^"\]|\\.)*"|'''|"""" color grey "(^|[[:blank:]])#.*" color grey start="'''([^'),]|$)" end="(^|[^(\])'''" color grey start=""""([^"),]|$)" end="(^|[^(\])"""" + +# Redundant spaces +color brightred,brightred "[[:space:]]+$"