## 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 magenta "\\." ## Highlight the argument of \f or \s in the same color color magenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" ## Newlines color cyan "(\\|\\\\)n(.|\(..)" color cyan start="(\\|\\\\)n\[" end="]" ## Requests color green "^\.[[:space:]]*[^[[:space:]]]*" ## Comments color yellow "^\.\\".*$" ## Strings color green "(\\|\\\\)\*(.|\(..)" color green start="(\\|\\\\)\*\[" end="]" ## Characters color red "\\\(.." color red start="\\\[" end="]" ## Macro arguments color cyan "\\\\\$[1-9]"