2006-06-01 21:23:28 +04:00
|
|
|
## Here is an example for groff.
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2006-06-01 21:23:28 +04:00
|
|
|
syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
|
2017-07-03 12:04:11 +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
|
2006-06-01 21:23:28 +04: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]"
|