2006-06-01 17:23:28 +00:00
|
|
|
## Here is an example for groff.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2006-06-01 17:23:28 +00:00
|
|
|
syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
|
2016-05-25 20:13:50 +00:00
|
|
|
comment ".\""
|
2014-05-16 20:21:34 +00:00
|
|
|
|
|
|
|
# The argument of .ds or .nr
|
2015-05-03 15:47:05 +00:00
|
|
|
color cyan "^\.(ds|nr) [^[:space:]]*"
|
2014-05-16 20:21:34 +00:00
|
|
|
# Single-character escapes
|
2006-06-01 17:23:28 +00:00
|
|
|
color brightmagenta "\\."
|
2014-05-16 20:21:34 +00:00
|
|
|
# The argument of \f or \s in the same color
|
2006-06-01 17:23:28 +00:00
|
|
|
color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]"
|
2014-05-16 20:21:34 +00:00
|
|
|
# Newlines
|
2006-06-01 17:23:28 +00:00
|
|
|
color cyan "(\\|\\\\)n(.|\(..)"
|
|
|
|
color cyan start="(\\|\\\\)n\[" end="]"
|
2014-05-16 20:21:34 +00:00
|
|
|
# Requests
|
2015-05-03 15:47:05 +00:00
|
|
|
color brightgreen "^\.[[:space:]]*[^[:space:]]*"
|
2014-05-16 20:21:34 +00:00
|
|
|
# Comments
|
2006-06-01 17:23:28 +00:00
|
|
|
color yellow "^\.\\".*$"
|
2014-05-16 20:21:34 +00:00
|
|
|
# Strings
|
2006-06-01 17:23:28 +00:00
|
|
|
color green "(\\|\\\\)\*(.|\(..)"
|
|
|
|
color green start="(\\|\\\\)\*\[" end="]"
|
2014-05-16 20:21:34 +00:00
|
|
|
# Characters
|
2006-06-01 17:23:28 +00:00
|
|
|
color brightred "\\\(.."
|
|
|
|
color brightred start="\\\[" end="]"
|
2014-05-16 20:21:34 +00:00
|
|
|
# Macro arguments
|
2006-06-01 17:23:28 +00:00
|
|
|
color brightcyan "\\\\\$[1-9]"
|