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.
master
Benno Schulenberg 2020-09-08 19:38:55 +02:00
parent dd24f6a18d
commit 0bc834e6f3
1 changed files with 2 additions and 0 deletions

View File

@ -27,3 +27,5 @@ color cyan "\\([abcefnrtv"\]|x[0-9abcdefABCDEF]{2}|[0-7]{3})"
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>" color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
# Obsolete strings. # Obsolete strings.
color red "#~.*" color red "#~.*"
# Stray control codes.
color bold,pink,red "[[:cntrl:]]"