diff --git a/python.nanorc b/python.nanorc index 1cd7a8c..8d2f400 100644 --- a/python.nanorc +++ b/python.nanorc @@ -45,11 +45,11 @@ color brightmagenta "([0-9]|[0-9]+\.[0-9]+|self)" # Strings color yellow "'([^'\]|\\.)*'|"([^"\]|\\.)*"|'''|"""" +color yellow start="'''([^'),]|$)" end="(^|[^(\])'''" +color yellow start=""""([^"),]|$)" end="(^|[^(\])"""" # Comments color grey "(^|[[:blank:]])#.*" -color grey start="'''([^'),]|$)" end="(^|[^(\])'''" -color grey start=""""([^"),]|$)" end="(^|[^(\])"""" # Redundant spaces color brightred,brightred "[[:space:]]+$"