]> git.lizzy.rs Git - micro.git/blob - syntax_files/groff.micro
Proper window resize handling
[micro.git] / syntax_files / groff.micro
1 ## Here is an example for groff.
2 ##
3 syntax "Groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
4 ## The argument of .ds or .nr
5 color cyan "^\.(ds|nr) [^[[:space:]]]*"
6 ## Single character escapes
7 color brightmagenta "\\."
8 ## Highlight the argument of \f or \s in the same color
9 color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]"
10 ## Newlines
11 color cyan "(\\|\\\\)n(.|\(..)"
12 color cyan (s) "(\\|\\\\)n\[.*?]"
13 ## Requests
14 color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
15 ## Comments
16 color yellow "^\.\\".*$"
17 ## Strings
18 color green "(\\|\\\\)\*(.|\(..)"
19 color green (s) "(\\|\\\\)\*\[.*?]"
20 ## Characters
21 color brightred "\\\(.."
22 color brightred (s) "\\\[.*?]"
23 ## Macro arguments
24 color brightcyan "\\\\\$[1-9]"
25