1 ## Here is an example for groff.
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]"
11 color cyan "(\\|\\\\)n(.|\(..)"
12 color cyan (s) "(\\|\\\\)n\[.*?]"
14 color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
16 color yellow "^\.\\".*$"
18 color green "(\\|\\\\)\*(.|\(..)"
19 color green (s) "(\\|\\\\)\*\[.*?]"
21 color brightred "\\\(.."
22 color brightred (s) "\\\[.*?]"
24 color brightcyan "\\\\\$[1-9]"