nanorc/groff.nanorc

25 lines
687 B
Plaintext
Raw Normal View History

2010-07-29 00:15:43 +02:00
## Here is an example for groff.
##
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]"