mirror of
https://github.com/scopatz/nanorc
synced 2024-11-21 16:15:40 +01:00
be00d820d5
2020-04-27
48 lines
998 B
Plaintext
48 lines
998 B
Plaintext
syntax "AsciiDoc" "\.(asc|asciidoc|adoc)$"
|
|
|
|
# main header
|
|
color brightred "^=[[:space:]].+$"
|
|
# h1
|
|
color red "^==[[:space:]].*$"
|
|
color red "^----+$"
|
|
# h2
|
|
color magenta "^===[[:space:]].*$"
|
|
color magenta "^~~~~+$"
|
|
# h4
|
|
color green "^====[[:space:]].*$"
|
|
color green "^\^\^\^\^+$"
|
|
# h5
|
|
color brightblue "^=====[[:space:]].*$"
|
|
color brightblue "^\+\+\+\++$"
|
|
|
|
# attributes
|
|
color brightgreen ":.*:"
|
|
color brightred "\{[a-z0-9]*\}"
|
|
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
|
|
color yellow ".*[[:space:]]\+$"
|
|
color yellow "_[^_]+_"
|
|
color yellow "\*[^\*]+\*"
|
|
color yellow "\+[^\+]+\+"
|
|
color yellow "`[^`]+`"
|
|
color yellow "\^[^\^]+\^"
|
|
color yellow "~[^~]+~"
|
|
color yellow "'[^']+'"
|
|
|
|
color cyan "`{1,2}[^']+'{1,2}"
|
|
|
|
# bullets
|
|
color brightmagenta "^[[:space:]]*[\*\.-]{1,5}[[:space:]]"
|
|
|
|
# anchors
|
|
color brightwhite "\[\[.*\]\]"
|
|
color brightwhite "<<.*>>"
|