commit 0bc834e6f3a435d043cabd926dc4fa1c866b50d8
parent dd24f6a18d9f9a65a5aa087b20f82a659d0fe03e
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Tue, 8 Sep 2020 19:38:55 +0200
syntax: po: highlight embedded control codes that shouldn't be there
For some reason the Romanian PO file contains a literal ^Q in one
of its translated messages -- currently at line 1984. This stray
^Q causes 'file' to classify po/ro.po as data.
Make such mistaken control codes easier to spot when using nano.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/syntax/po.nanorc b/syntax/po.nanorc
@@ -27,3 +27,5 @@ color cyan "\\([abcefnrtv"\]|x[0-9abcdefABCDEF]{2}|[0-7]{3})"
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
# Obsolete strings.
color red "#~.*"
+# Stray control codes.
+color bold,pink,red "[[:cntrl:]]"