groff.nanorc 723 B

12345678910111213141516171819202122232425
  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 start="(\\|\\\\)n\[" end="]"
  13. ## Requests
  14. color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
  15. ## Comments
  16. color yellow "^\.\\".*$"
  17. ## Strings
  18. color green "(\\|\\\\)\*(.|\(..)"
  19. color green start="(\\|\\\\)\*\[" end="]"
  20. ## Characters
  21. color brightred "\\\(.."
  22. color brightred start="\\\[" end="]"
  23. ## Macro arguments
  24. color brightcyan "\\\\\$[1-9]"