syntax: groff, man: colorize also \" tail comments and \# line comments

This fixes https://savannah.gnu.org/bugs/?68109.
Reported-by: G. Branden Robinson <g.branden.robinson@gmail.com>
This commit is contained in:
Benno Schulenberg
2026-03-06 09:29:52 +01:00
parent bdac995173
commit 9713f804df
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ color cyan start="\\(\\)?n\[" end="]"
# Requests
color brightgreen "^\.[[:blank:]]*[^[:space:]]*"
# Comments
color yellow "^\.\\".*"
color yellow "(^\\#|(^\.)?\\").*"
# References to strings
color green "\\(\\)?\*(.|\(..)"
color green start="\\(\\)?\*\[" end="]"

View File

@@ -24,7 +24,7 @@ color yellow "^\.(RS|RE|UR|UE|MT|ME|EX|EE|PD|DT)"
color yellow "^\.(ad|bp|br|ce|de|ds|el|ie|if|fi|ft|ig|in|na|ne|nf|nh|ps|so|sp|ti|tr)"
# Comments.
color cyan "(^\.)?\\".*"
color cyan "(^\\#|(^\.)?\\").*"
# Trailing whitespace.
color ,green "[[:space:]]+$"