nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit a1159ff484367c4a1542c080817b6ee800930051
parent 0c2caa50cc6c958b517de57be98a3e817203f6d1
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu,  6 Jun 2024 12:10:51 +0200

syntax: man: colorize some of the things that manipulate hyphenation

Reference:
  https://www.gnu.org/software/groff/manual/groff.html.node/Manipulating-Hyphenation.html

Diffstat:
Msyntax/man.nanorc | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/syntax/man.nanorc b/syntax/man.nanorc @@ -12,9 +12,12 @@ color brightred "^\.(B[IR]?|I[BR]?|R[BI]|S[BM]) .*" color brightblue "^\.((B[IR]?|I[BR]?|R[BI]|S[BM]) |[LP]?P$)" # Inline type faces. color magenta "\\f[BIPR]" +# Hyphenation control. +color purple "\\[%:]" +color yellow "^\.(hc|hla|hlm|hw|hy)" # Relative margins, hyperlinks, and various other stuff. 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|ig|in|na|ne|nf|nh|ps|so|sp|ti|tr)" # Comments. color cyan "(^\.)?\\".*"