2016-03-21 16:16:02 +00:00
|
|
|
## For reST
|
2016-08-25 00:15:36 +00:00
|
|
|
syntax "rst" "\.rest$" "\.rst$"
|
2017-03-03 16:47:03 +00:00
|
|
|
|
|
|
|
|
# Lists, bulleted and enumerated
|
|
|
|
|
color identifier "^[\*+\-] "
|
|
|
|
|
color identifier "^[0-9]+?\. "
|
2016-03-21 16:16:02 +00:00
|
|
|
# italics
|
2017-03-03 16:47:03 +00:00
|
|
|
color type "\*[^*]+?\*"
|
2016-03-21 16:16:02 +00:00
|
|
|
# bold
|
2017-03-03 16:47:03 +00:00
|
|
|
color type.keyword "\*\*[^\*]+\*\*"
|
2016-03-21 16:16:02 +00:00
|
|
|
# code block
|
2017-03-03 16:47:03 +00:00
|
|
|
color symbol "::"
|
2016-03-21 16:16:02 +00:00
|
|
|
# link reference
|
2017-03-03 16:47:03 +00:00
|
|
|
color underlined.url "`[^`]+`_{1,2}"
|
2016-03-21 16:16:02 +00:00
|
|
|
# code
|
2017-03-03 16:47:03 +00:00
|
|
|
color special "``[^`]+``"
|
2016-03-25 20:41:36 +00:00
|
|
|
# directives or comments
|
2017-03-03 16:47:03 +00:00
|
|
|
color comment "^\.\. .*$"
|
2016-03-21 16:16:02 +00:00
|
|
|
# anon link targets
|
2017-03-03 16:47:03 +00:00
|
|
|
color underlined "^__ .*$"
|
2016-03-21 16:16:02 +00:00
|
|
|
# h1
|
2017-03-03 16:47:03 +00:00
|
|
|
color statement "^###+$"
|
|
|
|
|
color statement "^\*\*\*+$"
|
2016-03-21 16:16:02 +00:00
|
|
|
# h2
|
2017-03-03 16:47:03 +00:00
|
|
|
color preproc "^===+$"
|
2016-03-21 16:16:02 +00:00
|
|
|
# h3
|
2017-03-03 16:47:03 +00:00
|
|
|
color identifier "^---+$"
|
2016-03-21 16:16:02 +00:00
|
|
|
# h4
|
2017-03-03 16:47:03 +00:00
|
|
|
color type.keyword "^\^\^\^+$"
|
2016-03-21 16:16:02 +00:00
|
|
|
# h5
|
2017-03-03 16:47:03 +00:00
|
|
|
color constant "^"""+$"
|
|
|
|
|
|
|
|
|
|
# urls
|
|
|
|
|
color underlined.url "http(s)?://[^ )>]+"
|
|
|
|
|
|
|
|
|
|
#Tables
|
|
|
|
|
color preproc "\+[\-=+]+\+"
|
|
|
|
|
color preproc "\|"
|
|
|
|
|
|
|
|
|
|
# I went and looked up an reStructured Text Specification.
|
|
|
|
|
# I really hope I got the right one. I tried to align
|
|
|
|
|
# color choices with the ones for markdown and asciidoc
|