From ca6f04ac2d9392e1c64e94dd2866a79ccb62acd6 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Mon, 20 Feb 2012 13:51:25 -0600 Subject: [PATCH] Python comments have precedence. --- python.nanorc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python.nanorc b/python.nanorc index 0c75541..b70cd62 100644 --- a/python.nanorc +++ b/python.nanorc @@ -15,9 +15,6 @@ color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" #Parenthetical Color color magenta "[(){}]" "\[" "\]" -#Comment Color -color brightblue "#.*$" - #String Color color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" @@ -26,3 +23,6 @@ color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" #color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''" color cyan start="([[:space:]]"""|^""")" end=""""" start="'''[^']" end="'''" +#Comment Color +color brightblue "#.*$" +