2019-03-30 19:45:05 +00:00
|
|
|
## Syntax highlighting for man pages.
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2018-02-07 10:25:46 +00:00
|
|
|
syntax man "\.[1-9]x?$"
|
2017-11-19 10:10:53 +00:00
|
|
|
magic "troff or preprocessor input"
|
2017-07-06 19:35:07 +00:00
|
|
|
comment ".\""
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2019-03-30 19:45:05 +00:00
|
|
|
# Section headers, title line, and indented paragraphs.
|
2019-03-30 19:48:42 +00:00
|
|
|
color green "^\.(SH|SS|TH) .*"
|
|
|
|
color brightgreen "^\.(SH|SS|TH) " "^\.([HIT]P)"
|
2019-03-30 19:45:05 +00:00
|
|
|
# Type faces, and normal paragraphs.
|
2019-03-30 19:48:42 +00:00
|
|
|
color brightred "^\.(B[IR]?|I[BR]?|R[BI]|S[BM]) .*"
|
|
|
|
color brightblue "^\.(B[IR]?|I[BR]?|R[BI]|S[BM]) " "^\.([LP]?P)$"
|
2019-03-30 19:45:05 +00:00
|
|
|
# Inline type faces.
|
2014-02-26 21:12:23 +00:00
|
|
|
color magenta "\\f[BIPR]"
|
2019-03-30 19:45:05 +00:00
|
|
|
# Relative margins, hyperlinks, and various other stuff.
|
2019-03-30 19:48:42 +00:00
|
|
|
color yellow "^\.(RS|RE|UR|UE|PD|DT)"
|
|
|
|
color yellow "^\.(ad|bp|br|ce|de|ds|el|ie|if|fi|ft|hy|ig|in|na|ne|nf|nh|ps|so|sp|ti|tr)"
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2014-05-12 18:10:08 +00:00
|
|
|
# Comments.
|
2020-07-27 08:47:27 +00:00
|
|
|
color cyan "(^\.)?\\".*"
|
2014-05-16 20:21:34 +00:00
|
|
|
|
2014-05-12 18:10:08 +00:00
|
|
|
# Trailing whitespace.
|
|
|
|
color ,green "[[:space:]]+$"
|