nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

po.nanorc (1366B)


      1 ## Syntax highlighting for PO files.
      2 
      3 ## Original author:  Benno Schulenberg
      4 ## License:  GPL version 3 or newer
      5 
      6 syntax po "\.pot?$"
      7 comment "#"
      8 
      9 # Comments.
     10 color green "^#.*"
     11 color yellow "Copyright|\(C\)"
     12 # Header fields.
     13 color brightred "^"X-Bugs:.*"$"
     14 color brightmagenta "\<(Project-Id-Version|Report-Msgid-Bugs-To|Last-Translator|Language(-Team)?|X-Bugs|X-Generator|Plural-Forms)\>"
     15 color cyan "\<(POT-Creation-Date|PO-Revision-Date|MIME-Version|Content-Type|Content-Transfer-Encoding)\>"
     16 # Encodings and numbers.
     17 color yellow "\<(UTF|ISO|Windows|Mac|IBM)-[0-9]+"
     18 color yellow "\<((pre|rc)?[0-9]+|[0-9]bit)\>"
     19 # Main keywords.
     20 color brightblue "^(msgid|msgid_plural|msgstr)\>"
     21 # Flags.
     22 color red " fuzzy(,|$)"
     23 color yellow " (no-)?([[:lower:]-]+|c\+\+)-format(,|$)"
     24 # Format specifiers.
     25 color brightmagenta "%([1-9]\$)?[#0 +'I-]?(\*([1-9]\$)?|[0-9]\.?|[0-9]?\.[0-9])?(hh|ll|[hlLjzt])?([diouxXeEfFgGaAcspnmr]|<PRI[diouxX](32|64)>)|%%"
     26 color rosy "%\([[:alpha:]][[:alnum:]_]*\)([0-9]\.?|[0-9]?\.[0-9])?[#0 +-]?[diouxXeEfFgGcrs]"
     27 # Quotes and escaped characters.
     28 color yellow """
     29 color cyan "\\([abcefnrtv"\]|x[[:xdigit:]]{2}|[0-7]{3})"
     30 # Context.
     31 color slate "^msgctxt.*"
     32 # Reminders.
     33 color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
     34 # Obsolete strings.
     35 color red "#~.*"
     36 # Stray control codes.
     37 color bold,pink,red "[[:cntrl:]]"
     38 # Tabs.
     39 color mint "[[:blank:]]"