nanorc/asciidoc.nanorc

48 lines
942 B
Plaintext
Raw Normal View History

syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$"
2014-02-23 02:26:13 +01:00
# main header
color red "^====+$"
# h1
color red "^==[[:space:]].*$"
color red "^----+$"
# h2
color magenta "^===[[:space:]].*$"
color magenta "^~~~~+$"
# h4
color green "^====[[:space:]].*$"
color green "^\^\^\^\^+$"
# h5
2018-08-09 10:09:19 +02:00
color blue "^=====[[:space:]].*$"
color blue "^\+\+\+\++$"
2014-02-23 02:26:13 +01:00
# attributes
2018-08-09 10:09:19 +02:00
color green ":.*:"
color red "\{[a-z0-9]*\}"
2014-02-23 02:26:13 +01:00
color red "\\\{[a-z0-9]*\}"
color red "\+\+\+\{[a-z0-9]*\}\+\+\+"
# Paragraph Title
color yellow "^\..*$"
# source
color magenta "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]"
# Other markup
2014-03-05 04:52:19 +01:00
color yellow ".*[[:space:]]\+$"
2014-02-23 18:50:40 +01:00
color yellow "_[^_]+_"
color yellow "\*[^\*]+\*"
color yellow "\+[^\+]+\+"
color yellow "`[^`]+`"
color yellow "\^[^\^]+\^"
color yellow "~[^~]+~"
color yellow "'[^']+'"
2014-02-23 02:26:13 +01:00
2014-02-23 18:50:40 +01:00
color cyan "`{1,2}[^']+'{1,2}"
2014-03-05 04:52:19 +01:00
# bullets
2018-08-09 10:09:19 +02:00
color magenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]"
2014-03-05 04:52:19 +01:00
# anchors
2018-08-09 10:09:19 +02:00
color white "\[\[.*\]\]"
color white "<<.*>>"