comparison nanorc.d/groff.nanorc @ 84:b989099cde9f

Start to update Nano colourisation Defaults are REALLY basic
author IBBoard <dev@ibboard.co.uk>
date Sat, 31 Mar 2018 21:06:21 +0100
parents
children
comparison
equal deleted inserted replaced
83:966d8f8f89d0 84:b989099cde9f
1 ## Here is an example for groff.
2 ##
3 syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
4 ## The argument of .ds or .nr
5 color cyan "^\.(ds|nr) [^[[:space:]]]*"
6 ## Single character escapes
7 color brightmagenta "\\."
8 ## Highlight the argument of \f or \s in the same color
9 color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]"
10 ## Newlines
11 color cyan "(\\|\\\\)n(.|\(..)"
12 color cyan start="(\\|\\\\)n\[" end="]"
13 ## Requests
14 color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
15 ## Comments
16 color yellow "^\.\\".*$"
17 ## Strings
18 color green "(\\|\\\\)\*(.|\(..)"
19 color green start="(\\|\\\\)\*\[" end="]"
20 ## Characters
21 color brightred "\\\(.."
22 color brightred start="\\\[" end="]"
23 ## Macro arguments
24 color brightcyan "\\\\\$[1-9]"