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:]]+$"