mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 12:51:23 +03:00
27 lines
742 B
Plaintext
27 lines
742 B
Plaintext
## Syntax highlighting for groff.
|
|
|
|
syntax groff "\.(m[ems]|rof|tmac)$|/tmac\.[^/]+$"
|
|
comment ".\""
|
|
|
|
# The setting of a string or register
|
|
color cyan "^\.(ds|nr) [^[:space:]]*"
|
|
# Single-character escapes
|
|
color brightmagenta "\\."
|
|
# The argument of \f or \s in the same color
|
|
color brightmagenta "\\f(.|\(..)|\\s(\+|\-)?[0-9]"
|
|
# References to registers
|
|
color cyan "\\(\\)?n(.|\(..)"
|
|
color cyan start="\\(\\)?n\[" end="]"
|
|
# Requests
|
|
color brightgreen "^\.[[:blank:]]*[^[:space:]]*"
|
|
# Comments
|
|
color yellow "^\.\\".*"
|
|
# References to strings
|
|
color green "\\(\\)?\*(.|\(..)"
|
|
color green start="\\(\\)?\*\[" end="]"
|
|
# Special characters
|
|
color brightred "\\\(.."
|
|
color brightred start="\\\[" end="]"
|
|
# Macro arguments
|
|
color brightcyan "\\\\\$[1-9]"
|