summaryrefslogtreecommitdiff
path: root/doc/syntax/groff.nanorc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/syntax/groff.nanorc')
-rw-r--r--doc/syntax/groff.nanorc24
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]"