From 0bc834e6f3a435d043cabd926dc4fa1c866b50d8 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 8 Sep 2020 19:38:55 +0200 Subject: [PATCH] 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. --- syntax/po.nanorc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syntax/po.nanorc b/syntax/po.nanorc index c9f0bccf..e3ecf5e2 100644 --- 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:]]"