diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-05 12:55:17 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-05 12:55:17 -0800 |
commit | 176336f2dedded583aa8d775e6f97ad25a293aa5 (patch) | |
tree | 35155f4aedb601ee1f5895b1e5aaa693c12d94df /doc/syntax/groff.nanorc | |
download | nano-176336f2dedded583aa8d775e6f97ad25a293aa5.tar.gz nano-176336f2dedded583aa8d775e6f97ad25a293aa5.tar.bz2 nano-176336f2dedded583aa8d775e6f97ad25a293aa5.zip |
Imported Upstream version 2.3.1upstream/2.3.1upstream
Diffstat (limited to 'doc/syntax/groff.nanorc')
-rw-r--r-- | doc/syntax/groff.nanorc | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/syntax/groff.nanorc b/doc/syntax/groff.nanorc new file mode 100644 index 0000000..02b82b8 --- /dev/null +++ b/doc/syntax/groff.nanorc @@ -0,0 +1,24 @@ +## Here is an example for groff. +## +syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac." +## The argument of .ds or .nr +color cyan "^\.(ds|nr) [^[[: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 "^\.\\".*$" +## Strings +color green "(\\|\\\\)\*(.|\(..)" +color green start="(\\|\\\\)\*\[" end="]" +## Characters +color brightred "\\\(.." +color brightred start="\\\[" end="]" +## Macro arguments +color brightcyan "\\\\\$[1-9]" |