micro/runtime/syntax/asciidoc.micro

48 lines
1.1 KiB
Text
Raw Normal View History

syntax "asciidoc" "\.(asc|asciidoc|adoc)$"
2016-03-21 16:16:02 +00:00
# main header
color preproc "^====+$"
2016-03-21 16:16:02 +00:00
# h1
color statement "^==[[:space:]].*$"
color statement "^----+$"
2016-03-21 16:16:02 +00:00
# h2
color symbol "^===[[:space:]].*$"
color symbol "^~~~~+$"
2016-03-21 16:16:02 +00:00
# h4
color type "^====[[:space:]].*$"
color type "^\^\^\^\^+$"
2016-03-21 16:16:02 +00:00
# h5
color constant "^=====[[:space:]].*$"
color constant "^\+\+\+\++$"
2016-03-21 16:16:02 +00:00
# attributes
color type.keyword ":.*:"
color identifier.macro "\{[a-z0-9]*\}"
color identifier "\\\{[a-z0-9]*\}"
color identifier "\+\+\+\{[a-z0-9]*\}\+\+\+"
2016-03-21 16:16:02 +00:00
# Paragraph Title
color statement "^\..*$"
2016-03-21 16:16:02 +00:00
# source
color identifier "^\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]"
2016-03-21 16:16:02 +00:00
# Other markup
color constant.string ".*[[:space:]]\+$"
color constant.string "_[^_]+_"
color constant.string "\*[^\*]+\*"
color constant.string "\+[^\+]+\+"
color constant.string "`[^`]+`"
color constant.string "\^[^\^]+\^"
color constant.string "~[^~]+~"
color constant.string "'[^']+'"
2016-03-21 16:16:02 +00:00
color constant "`{1,2}[^']+'{1,2}"
2016-03-21 16:16:02 +00:00
# bullets
color symbol "^[[:space:]]*[\*\.-]{1,5}[[:space:]]"
2016-03-21 16:16:02 +00:00
# anchors
color bold default "\[\[.*\]\]"
color bold default "<<.*>>"