diff options
Diffstat (limited to 'doc/syntax/groff.nanorc')
-rw-r--r-- | doc/syntax/groff.nanorc | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/doc/syntax/groff.nanorc b/doc/syntax/groff.nanorc index 02b82b8..70f641d 100644 --- a/doc/syntax/groff.nanorc +++ b/doc/syntax/groff.nanorc @@ -1,24 +1,25 @@ ## Here is an example for groff. -## + syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." -## The argument of .ds or .nr + +# The argument of .ds or .nr color cyan "^\.(ds|nr) [^[[:space:]]]*" -## Single character escapes +# Single-character escapes color brightmagenta "\\." -## Highlight the argument of \f or \s in the same color +# The argument of \f or \s in the same color color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" -## Newlines +# Newlines color cyan "(\\|\\\\)n(.|\(..)" color cyan start="(\\|\\\\)n\[" end="]" -## Requests +# Requests color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" -## Comments +# Comments color yellow "^\.\\".*$" -## Strings +# Strings color green "(\\|\\\\)\*(.|\(..)" color green start="(\\|\\\\)\*\[" end="]" -## Characters +# Characters color brightred "\\\(.." color brightred start="\\\[" end="]" -## Macro arguments +# Macro arguments color brightcyan "\\\\\$[1-9]" |