nano

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

groff.nanorc (790B)


      1 ## Syntax highlighting for groff.
      2 
      3 ## Original author:  Robert D. Goulding
      4 
      5 syntax groff "\.(me|mm|mom|ms|roff|tmac)$|/tmac\.[^/]+$"
      6 comment ".\""
      7 
      8 # The setting of a string or register
      9 color cyan "^\.(ds|nr) [^[:space:]]*"
     10 # Single-character escapes
     11 color brightmagenta "\\."
     12 # The argument of \f or \s in the same color
     13 color brightmagenta "\\f(.|\(..)|\\s(\+|\-)?[0-9]"
     14 # References to registers
     15 color cyan "\\(\\)?n(.|\(..)"
     16 color cyan start="\\(\\)?n\[" end="]"
     17 # Requests
     18 color brightgreen "^\.[[:blank:]]*[^[:space:]]*"
     19 # Comments
     20 color yellow "^\.\\".*"
     21 # References to strings
     22 color green "\\(\\)?\*(.|\(..)"
     23 color green start="\\(\\)?\*\[" end="]"
     24 # Special characters
     25 color brightred "\\\(.."
     26 color brightred start="\\\[" end="]"
     27 # Macro arguments
     28 color brightcyan "\\\\\$[0-9]"