From ae79b9f5688e8c049cdf71da6a389e9d565a1509 Mon Sep 17 00:00:00 2001 From: Mal Date: Thu, 26 May 2022 00:22:56 +0200 Subject: [PATCH] Multiline strings for python are yellow now --- python.nanorc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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:]]+$"