nano

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

texinfo.nanorc (864B)


      1 ## Syntax highlighting for Texinfo files.
      2 
      3 ## Original author:  Benno Schulenberg
      4 ## License:  GPL version 3 or newer
      5 
      6 syntax texinfo "\.texi$"
      7 header "^\\input texinfo"
      8 magic "Texinfo source"
      9 comment "@c "
     10 
     11 # How the manual gets listed in the directory node.
     12 color purple start="^@direntry" end="^@end direntry"
     13 
     14 # Command arguments, trailing and enclosed.
     15 color cyan "^@[[:lower:]]+[[:space:]]+.*"
     16 color lightmagenta "@([[:lower:]]+|,|H|U)\{([^}]|@\}|@[[:lower:]]+\{[^}]*\})*\}"
     17 # Commands themselves.
     18 color yellow "^@[[:lower:]]+([[:space:]]|$)|@([[:lower:]]+|,|H|U|AA|AE|DH|L|OE?|(La)?TeX|TH)\{|\}"
     19 color pink "@[!"'&*./:=?@\^`{}~-]"
     20 
     21 # Special separator for headings and footings.
     22 color mint "@\|"
     23 
     24 # Menu items.
     25 color brightred "^\*[[:space:]]+.*::.*"
     26 
     27 # Comments.
     28 color green "@c(omment)?[[:space:]]+.*"
     29 
     30 # Trailing whitespace.
     31 color ,green "[[:space:]]+$"