summaryrefslogtreecommitdiff
path: root/doc/syntax/groff.nanorc
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-03-23 03:49:03 +0000
committer <>2015-03-25 17:06:51 +0000
commitfb040ea36cb8e2158ccd9100600652f94ae90af1 (patch)
treedba72a74e84a997c23fa0af7c07a4d831be2deb7 /doc/syntax/groff.nanorc
parent8b74abeb02c01ddc768c465a826360cf33cec063 (diff)
downloadnano-tarball-fb040ea36cb8e2158ccd9100600652f94ae90af1.tar.gz
Imported from /home/lorry/working-area/delta_nano-tarball/nano-2.4.0.tar.gz.HEADnano-2.4.0master
Diffstat (limited to 'doc/syntax/groff.nanorc')
-rw-r--r--doc/syntax/groff.nanorc21
1 files changed, 11 insertions, 10 deletions
diff --git a/doc/syntax/groff.nanorc b/doc/syntax/groff.nanorc
index 02b82b8..70f641d 100644
--- a/doc/syntax/groff.nanorc
+++ b/doc/syntax/groff.nanorc
@@ -1,24 +1,25 @@
## Here is an example for groff.
-##
+
syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
-## The argument of .ds or .nr
+
+# The argument of .ds or .nr
color cyan "^\.(ds|nr) [^[[:space:]]]*"
-## Single character escapes
+# Single-character escapes
color brightmagenta "\\."
-## Highlight the argument of \f or \s in the same color
+# The argument of \f or \s in the same color
color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]"
-## Newlines
+# Newlines
color cyan "(\\|\\\\)n(.|\(..)"
color cyan start="(\\|\\\\)n\[" end="]"
-## Requests
+# Requests
color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
-## Comments
+# Comments
color yellow "^\.\\".*$"
-## Strings
+# Strings
color green "(\\|\\\\)\*(.|\(..)"
color green start="(\\|\\\\)\*\[" end="]"
-## Characters
+# Characters
color brightred "\\\(.."
color brightred start="\\\[" end="]"
-## Macro arguments
+# Macro arguments
color brightcyan "\\\\\$[1-9]"