From b364e4bf4d0d09ef73c427bfbebe5041638a773d Mon Sep 17 00:00:00 2001 From: Simon Volpert Date: Wed, 14 Mar 2018 18:34:58 +0200 Subject: [PATCH] Make Python comment rule more specific --- python.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python.nanorc b/python.nanorc index d8b5584..e5cf6f3 100644 --- a/python.nanorc +++ b/python.nanorc @@ -38,7 +38,7 @@ color yellow "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" color yellow "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" ## comments -color green "#.*$" +color green "^#.*|[[:space:]]#.*$" ## block comments #color green start=""""([^"]|$)" end=""""" start="'''([^']|$)" end="'''"