mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
fist stab at asciidoc
This commit is contained in:
parent
ecfdac7396
commit
9611872cd2
40
asciidoc.nanorc
Normal file
40
asciidoc.nanorc
Normal file
|
@ -0,0 +1,40 @@
|
|||
syntax "asciidoc" "\.(asc|asciidoc)$"
|
||||
|
||||
# main header
|
||||
color red "^====+$"
|
||||
# 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 ".*\+$"
|
||||
color yellow "_.+_"
|
||||
color yellow "\*.+\*"
|
||||
color yellow "\+.+\+"
|
||||
color yellow "`.+`"
|
||||
color yellow "\^.+\^"
|
||||
color yellow "~.+~"
|
||||
color yellow "'.+'"
|
||||
|
||||
color cyan "`{1,2}.+'{1,2}"
|
Loading…
Reference in New Issue
Block a user