File: groff.nanorc

package info (click to toggle)
nano 8.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,632 kB
  • sloc: ansic: 78,234; sh: 4,960; makefile: 219; sed: 16
file content (28 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## Syntax highlighting for groff.

## Original author:  Robert D. Goulding

syntax groff "\.(me|mm|mom|ms|roff|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 "\\\\\$[0-9]"