From e35d6674f476901e6c429ef2bb7ac2ddf1ee5978 Mon Sep 17 00:00:00 2001 From: hdquemada <44162051+hdquemada@users.noreply.github.com> Date: Thu, 30 Apr 2020 10:31:24 -0400 Subject: [PATCH] Update groff.nanorc 2020-04-30 Changed to allow coloring of more than the first letter of the macro commancs --- groff.nanorc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/groff.nanorc b/groff.nanorc index 508c4ab..8b60c74 100644 --- a/groff.nanorc +++ b/groff.nanorc @@ -4,7 +4,7 @@ syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." comment ".\"" ## The argument of .ds or .nr -color cyan "^\.(ds|nr) [^[[:space:]]]*" +color cyan "^\.(ds|nr) [^[[:space:]]]*[^[[:space:]]]*" ## Single character escapes color brightmagenta "\\." ## Highlight the argument of \f or \s in the same color @@ -13,7 +13,8 @@ color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" color cyan "(\\|\\\\)n(.|\(..)" color cyan start="(\\|\\\\)n\[" end="]" ## Requests -color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" +#color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" +color brightgreen "^\.[[:space:]]*[^[[:space:]]]*[^[[:space:]]]*" ## Comments color yellow "^\.\\".*$" ## Strings