syntax: man: anchor macros at start of line, as only then they are valid

master
Benno Schulenberg 2019-03-30 20:48:42 +01:00
parent 9120a62cdd
commit e473ba5e6c
1 changed files with 7 additions and 7 deletions

View File

@ -5,19 +5,19 @@ magic "troff or preprocessor input"
comment ".\"" comment ".\""
# Section headers, title line, and indented paragraphs. # Section headers, title line, and indented paragraphs.
color green "\.(SH|SS|TH) .*" color green "^\.(SH|SS|TH) .*"
color brightgreen "\.(SH|SS|TH) " "\.([HIT]P)" color brightgreen "^\.(SH|SS|TH) " "^\.([HIT]P)"
# Type faces, and normal paragraphs. # Type faces, and normal paragraphs.
color brightred "\.(B[IR]?|I[BR]?|R[BI]|S[BM]) .*" color brightred "^\.(B[IR]?|I[BR]?|R[BI]|S[BM]) .*"
color brightblue "\.(B[IR]?|I[BR]?|R[BI]|S[BM]) " "\.([LP]?P)$" color brightblue "^\.(B[IR]?|I[BR]?|R[BI]|S[BM]) " "^\.([LP]?P)$"
# Inline type faces. # Inline type faces.
color magenta "\\f[BIPR]" color magenta "\\f[BIPR]"
# Relative margins, hyperlinks, and various other stuff. # Relative margins, hyperlinks, and various other stuff.
color yellow "\.(RS|RE|UR|UE|PD|DT)" 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)" 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)"
# Comments. # Comments.
color cyan "\.?\\\".*" color cyan "^\.?\\\".*"
# Trailing whitespace. # Trailing whitespace.
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"