asciidoc.nanorc 984 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. syntax "asciidoc" "\.(asc|asciidoc|adoc)$"
  2. # main header
  3. color red "^====+$"
  4. # h1
  5. color red "^==[[:space:]].*$"
  6. color red "^----+$"
  7. # h2
  8. color magenta "^===[[:space:]].*$"
  9. color magenta "^~~~~+$"
  10. # h4
  11. color green "^====[[:space:]].*$"
  12. color green "^\^\^\^\^+$"
  13. # h5
  14. color brightblue "^=====[[:space:]].*$"
  15. color brightblue "^\+\+\+\++$"
  16. # attributes
  17. color brightgreen ":.*:"
  18. color brightred "\{[a-z0-9]*\}"
  19. color red "\\\{[a-z0-9]*\}"
  20. color red "\+\+\+\{[a-z0-9]*\}\+\+\+"
  21. # Paragraph Title
  22. color yellow "^\..*$"
  23. # source
  24. color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]"
  25. # Other markup
  26. color yellow ".*[[:space:]]\+$"
  27. color yellow "_[^_]+_"
  28. color yellow "\*[^\*]+\*"
  29. color yellow "\+[^\+]+\+"
  30. color yellow "`[^`]+`"
  31. color yellow "\^[^\^]+\^"
  32. color yellow "~[^~]+~"
  33. color yellow "'[^']+'"
  34. color cyan "`{1,2}[^']+'{1,2}"
  35. # bullets
  36. color brightmagenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]"
  37. # anchors
  38. color brightwhite "\[\[.*\]\]"
  39. color brightwhite "<<.*>>"