micro/runtime/syntax/reST.micro

43 lines
890 B
Text
Raw Normal View History

2016-03-21 16:16:02 +00:00
## For reST
syntax "rst" "\.rest$" "\.rst$"
# Lists, bulleted and enumerated
color identifier "^[\*+\-] "
color identifier "^[0-9]+?\. "
2016-03-21 16:16:02 +00:00
# italics
color type "\*[^*]+?\*"
2016-03-21 16:16:02 +00:00
# bold
color type.keyword "\*\*[^\*]+\*\*"
2016-03-21 16:16:02 +00:00
# code block
color symbol "::"
2016-03-21 16:16:02 +00:00
# link reference
color underlined.url "`[^`]+`_{1,2}"
2016-03-21 16:16:02 +00:00
# code
color special "``[^`]+``"
2016-03-25 20:41:36 +00:00
# directives or comments
color comment "^\.\. .*$"
2016-03-21 16:16:02 +00:00
# anon link targets
color underlined "^__ .*$"
2016-03-21 16:16:02 +00:00
# h1
color statement "^###+$"
color statement "^\*\*\*+$"
2016-03-21 16:16:02 +00:00
# h2
color preproc "^===+$"
2016-03-21 16:16:02 +00:00
# h3
color identifier "^---+$"
2016-03-21 16:16:02 +00:00
# h4
color type.keyword "^\^\^\^+$"
2016-03-21 16:16:02 +00:00
# h5
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