micro/runtime/syntax/groff.micro

25 lines
723 B
Text
Raw Normal View History

2016-03-21 19:16:02 +03:00
## 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(.|\(..)"
2016-03-25 23:41:36 +03:00
color cyan start="(\\|\\\\)n\[" end="]"
2016-03-21 19:16:02 +03:00
## Requests
color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
## Comments
color yellow "^\.\\".*$"
## Strings
color green "(\\|\\\\)\*(.|\(..)"
2016-03-25 23:41:36 +03:00
color green start="(\\|\\\\)\*\[" end="]"
2016-03-21 19:16:02 +03:00
## Characters
color brightred "\\\(.."
2016-03-25 23:41:36 +03:00
color brightred start="\\\[" end="]"
2016-03-21 19:16:02 +03:00
## Macro arguments
color brightcyan "\\\\\$[1-9]"