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