From bc41e51769166b8a85f90457677975e7f54d0c91 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 5 Dec 2013 19:50:09 +0100 Subject: added my own updated Groff syntax highlighting file for Nano it's nice to have this somewhere... --- groff.nanorc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 groff.nanorc diff --git a/groff.nanorc b/groff.nanorc new file mode 100644 index 0000000..79949ed --- /dev/null +++ b/groff.nanorc @@ -0,0 +1,26 @@ +## Here is an example for groff. +## +syntax "groff" "(\.m[ems]|\.mom)$" "\.rof" "\.tmac$" "^tmac." +## The argument of .ds or .nr +color cyan "^\.[[:space:]]*(ds|nr)[[:space:]]+[^[:space:]]*" +## Single character escapes +color brightmagenta "\\." +## Highlight the argument of \f or \s in the same color +color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" +## Newlines +color cyan "(\\|\\\\)n(.|\(..)" +color cyan start="(\\|\\\\)n\[" end="]" +## Requests +color brightgreen "^\.[[:space:]]*[^[:space:]]*" +## Comments +color yellow "^\.\\".*$" +color yellow "\\".*$" +color yellow "^\\#.*$" +## Strings +color green "(\\|\\\\)\*(.|\(..)" +color green start="(\\|\\\\)\*\[" end="]" +## Characters +color brightred "\\\(.." +color brightred start="\\\[" end="]" +## Macro arguments +color brightcyan "\\\\\$[1-9]" -- cgit v1.2.3