2006-06-01 21:23:28 +04:00
|
|
|
## Here is an example for groff.
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2018-05-18 21:40:08 +03:00
|
|
|
syntax groff "(/tmac\.[^/]+$|\.(m[ems]|rof|tmac)$)"
|
2017-07-06 22:35:07 +03:00
|
|
|
comment ".\""
|
2014-05-17 00:21:34 +04:00
|
|
|
|
|
|
|
# The argument of .ds or .nr
|
2015-05-03 18:47:05 +03:00
|
|
|
color cyan "^\.(ds|nr) [^[:space:]]*"
|
2014-05-17 00:21:34 +04:00
|
|
|
# Single-character escapes
|
2006-06-01 21:23:28 +04:00
|
|
|
color brightmagenta "\\."
|
2014-05-17 00:21:34 +04:00
|
|
|
# The argument of \f or \s in the same color
|
2006-06-01 21:23:28 +04:00
|
|
|
color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]"
|
2014-05-17 00:21:34 +04:00
|
|
|
# Newlines
|
2006-06-01 21:23:28 +04:00
|
|
|
color cyan "(\\|\\\\)n(.|\(..)"
|
|
|
|
color cyan start="(\\|\\\\)n\[" end="]"
|
2014-05-17 00:21:34 +04:00
|
|
|
# Requests
|
2015-05-03 18:47:05 +03:00
|
|
|
color brightgreen "^\.[[:space:]]*[^[:space:]]*"
|
2014-05-17 00:21:34 +04:00
|
|
|
# Comments
|
2018-11-03 23:12:44 +03:00
|
|
|
color yellow "^\.\\".*"
|
2014-05-17 00:21:34 +04:00
|
|
|
# Strings
|
2006-06-01 21:23:28 +04:00
|
|
|
color green "(\\|\\\\)\*(.|\(..)"
|
|
|
|
color green start="(\\|\\\\)\*\[" end="]"
|
2014-05-17 00:21:34 +04:00
|
|
|
# Characters
|
2006-06-01 21:23:28 +04:00
|
|
|
color brightred "\\\(.."
|
|
|
|
color brightred start="\\\[" end="]"
|
2014-05-17 00:21:34 +04:00
|
|
|
# Macro arguments
|
2006-06-01 21:23:28 +04:00
|
|
|
color brightcyan "\\\\\$[1-9]"
|