2016-03-21 16:16:02 +00:00
|
|
|
## Here is an example for groff.
|
|
|
|
|
##
|
2016-08-25 00:15:36 +00:00
|
|
|
syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
|
2016-03-21 16:16:02 +00:00
|
|
|
## The argument of .ds or .nr
|
2017-03-01 14:30:35 +00:00
|
|
|
color statement "^\.(ds|nr) [^[[:space:]]]*"
|
2016-03-21 16:16:02 +00:00
|
|
|
## Single character escapes
|
2017-03-01 14:30:35 +00:00
|
|
|
color constant.specialChar "\\."
|
2016-03-21 16:16:02 +00:00
|
|
|
## Highlight the argument of \f or \s in the same color
|
2017-03-01 14:30:35 +00:00
|
|
|
color constant.specialChar "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]"
|
2016-03-21 16:16:02 +00:00
|
|
|
## Newlines
|
2017-03-01 14:30:35 +00:00
|
|
|
color constant "(\\|\\\\)n(.|\(..)"
|
|
|
|
|
color constant start="(\\|\\\\)n\[" end="]"
|
2016-03-21 16:16:02 +00:00
|
|
|
## Requests
|
2017-03-01 14:30:35 +00:00
|
|
|
color type "^\.[[:space:]]*[^[[:space:]]]*"
|
2016-03-21 16:16:02 +00:00
|
|
|
## Comments
|
2017-03-01 14:30:35 +00:00
|
|
|
color comment "^\.\\".*$"
|
2016-03-21 16:16:02 +00:00
|
|
|
## Strings
|
2017-03-01 14:30:35 +00:00
|
|
|
color constant.string "(\\|\\\\)\*(.|\(..)"
|
|
|
|
|
color constant.string start="(\\|\\\\)\*\[" end="]"
|
2016-03-21 16:16:02 +00:00
|
|
|
## Characters
|
2017-03-01 14:30:35 +00:00
|
|
|
color constant.specialChar "\\\(.."
|
|
|
|
|
color constant.specialChar start="\\\[" end="]"
|
2016-03-21 16:16:02 +00:00
|
|
|
## Macro arguments
|
2017-03-01 14:30:35 +00:00
|
|
|
color identifier.macro "\\\\\$[1-9]"
|