2010-07-29 00:15:43 +02:00
|
|
|
## For reST
|
2016-03-02 20:49:58 +01:00
|
|
|
syntax "RST" "\.rest$" "\.rst$"
|
2010-07-29 00:15:43 +02:00
|
|
|
# italics
|
|
|
|
#color magenta "\*[^*]\*"
|
|
|
|
# bold
|
|
|
|
color red "\*\*[^*]+\*\*"
|
|
|
|
# code block
|
2018-08-09 10:09:19 +02:00
|
|
|
color red "::"
|
2010-07-29 00:15:43 +02:00
|
|
|
# link reference
|
|
|
|
color blue "`[^`]+`_{1,2}"
|
|
|
|
# code
|
|
|
|
color yellow "``[^`]+``"
|
|
|
|
# directives or comments
|
|
|
|
color cyan "^\.\. .*$"
|
|
|
|
# anon link targets
|
|
|
|
color cyan "^__ .*$"
|
|
|
|
# h1
|
|
|
|
color yellow "^###+$"
|
|
|
|
color yellow "^\*\*\*+$"
|
|
|
|
# h2
|
|
|
|
color magenta "^===+$"
|
|
|
|
# h3
|
|
|
|
color red "^---+$"
|
|
|
|
# h4
|
|
|
|
color green "^\^\^\^+$"
|
|
|
|
# h5
|
|
|
|
color blue "^"""+$"
|