From be00d820d543ae8bfa1197aa0d6969c47fbc59ff Mon Sep 17 00:00:00 2001 From: hdquemada <44162051+hdquemada@users.noreply.github.com> Date: Mon, 27 Apr 2020 00:09:25 -0400 Subject: [PATCH 1/3] Update asciidoc.nanorc 2020-04-27 --- asciidoc.nanorc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asciidoc.nanorc b/asciidoc.nanorc index b16a74e..1f9d2cc 100644 --- a/asciidoc.nanorc +++ b/asciidoc.nanorc @@ -1,7 +1,7 @@ syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$" # main header -color red "^====+$" +color brightred "^=[[:space:]].+$" # h1 color red "^==[[:space:]].*$" color red "^----+$" @@ -24,7 +24,7 @@ color red "\+\+\+\{[a-z0-9]*\}\+\+\+" # Paragraph Title color yellow "^\..*$" -# source +# source color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]" # Other markup 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 2/3] 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 From 104dde0fb103077c3c11c7bb3d6eaf41fd3703b1 Mon Sep 17 00:00:00 2001 From: hdquemada <44162051+hdquemada@users.noreply.github.com> Date: Thu, 30 Apr 2020 10:36:04 -0400 Subject: [PATCH 3/3] Update groff.nanorc 2020-04-30 deleted old line commented out --- groff.nanorc | 1 - 1 file changed, 1 deletion(-) diff --git a/groff.nanorc b/groff.nanorc index 8b60c74..95e0ee4 100644 --- a/groff.nanorc +++ b/groff.nanorc @@ -13,7 +13,6 @@ color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" color cyan "(\\|\\\\)n(.|\(..)" color cyan start="(\\|\\\\)n\[" end="]" ## Requests -#color brightgreen "^\.[[:space:]]*[^[[:space:]]]*" color brightgreen "^\.[[:space:]]*[^[[:space:]]]*[^[[:space:]]]*" ## Comments color yellow "^\.\\".*$"