2010-07-29 00:15:43 +02:00
|
|
|
## Here is an example for groff.
|
|
|
|
##
|
2016-03-02 20:49:58 +01:00
|
|
|
syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
|
2010-07-29 00:15:43 +02:00
|
|
|
## The argument of .ds or .nr
|
|
|
|
color cyan "^\.(ds|nr) [^[[:space:]]]*"
|
|
|
|
## Single character escapes
|
2018-08-09 10:09:19 +02:00
|
|
|
color magenta "\\."
|
2010-07-29 00:15:43 +02:00
|
|
|
## Highlight the argument of \f or \s in the same color
|
2018-08-09 10:09:19 +02:00
|
|
|
color magenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]"
|
2010-07-29 00:15:43 +02:00
|
|
|
## Newlines
|
|
|
|
color cyan "(\\|\\\\)n(.|\(..)"
|
|
|
|
color cyan start="(\\|\\\\)n\[" end="]"
|
|
|
|
## Requests
|
2018-08-09 10:09:19 +02:00
|
|
|
color green "^\.[[:space:]]*[^[[:space:]]]*"
|
2010-07-29 00:15:43 +02:00
|
|
|
## Comments
|
|
|
|
color yellow "^\.\\".*$"
|
|
|
|
## Strings
|
|
|
|
color green "(\\|\\\\)\*(.|\(..)"
|
|
|
|
color green start="(\\|\\\\)\*\[" end="]"
|
|
|
|
## Characters
|
2018-08-09 10:09:19 +02:00
|
|
|
color red "\\\(.."
|
|
|
|
color red start="\\\[" end="]"
|
2010-07-29 00:15:43 +02:00
|
|
|
## Macro arguments
|
2018-08-09 10:09:19 +02:00
|
|
|
color cyan "\\\\\$[1-9]"
|