2019-03-30 22:45:05 +03:00
|
|
|
## Syntax highlighting for man pages.
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2018-02-07 13:25:46 +03:00
|
|
|
syntax man "\.[1-9]x?$"
|
2017-11-19 13:10:53 +03:00
|
|
|
magic "troff or preprocessor input"
|
2017-07-06 22:35:07 +03:00
|
|
|
comment ".\""
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2019-03-30 22:45:05 +03:00
|
|
|
# Section headers, title line, and indented paragraphs.
|
2019-03-30 22:48:42 +03:00
|
|
|
color green "^\.(SH|SS|TH) .*"
|
|
|
|
color brightgreen "^\.(SH|SS|TH) " "^\.([HIT]P)"
|
2019-03-30 22:45:05 +03:00
|
|
|
# Type faces, and normal paragraphs.
|
2019-03-30 22:48:42 +03: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 22:45:05 +03:00
|
|
|
# Inline type faces.
|
2014-02-27 01:12:23 +04:00
|
|
|
color magenta "\\f[BIPR]"
|
2019-03-30 22:45:05 +03:00
|
|
|
# Relative margins, hyperlinks, and various other stuff.
|
2019-03-30 22:48:42 +03: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-17 00:21:34 +04:00
|
|
|
|
2014-05-12 22:10:08 +04:00
|
|
|
# Comments.
|
2019-03-31 13:17:49 +03:00
|
|
|
color cyan "(^\.)?\\\".*"
|
2014-05-17 00:21:34 +04:00
|
|
|
|
2014-05-12 22:10:08 +04:00
|
|
|
# Trailing whitespace.
|
|
|
|
color ,green "[[:space:]]+$"
|