From 3b8847f319891d069a021f9036c36eaeb1fee672 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 29 Jul 2019 19:07:43 +0200 Subject: [PATCH] syntax: po: colorize numbers only when they form a self-contained word --- syntax/po.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/po.nanorc b/syntax/po.nanorc index 5b99885c..ecbfb7db 100644 --- a/syntax/po.nanorc +++ b/syntax/po.nanorc @@ -12,7 +12,7 @@ color brightmagenta "\<(Project\-Id\-Version|Report\-Msgid\-Bugs\-To|Last\-Trans color cyan "\<(POT\-Creation\-Date|PO\-Revision\-Date|MIME\-Version|Content\-Type|Content\-Transfer\-Encoding)\>" # Encodings and numbers. color yellow "\<(UTF|ISO|Windows|Mac|IBM)-[0-9]+" -color yellow "[0-9]|pre[0-9]|[0-9]bit" +color yellow "\<((pre|rc)?[0-9]+|[0-9]bit)\>" # Msgids. color brightblue "^(msgid|msgid_plural|msgstr)\>" # Tags.