Files
zyedidia.micro/runtime/syntax/asciidoc.yaml
2017-03-21 14:55:22 -04:00

34 lines
1.0 KiB
YAML

filetype: asciidoc
detect:
filename: "\\.(asc|asciidoc|adoc)$"
rules:
- preproc: "^====+$"
- statement: "^==[[:space:]].*$"
- statement: "^----+$"
- symbol: "^===[[:space:]].*$"
- symbol: "^~~~~+$"
- type: "^====[[:space:]].*$"
- type: "^\\^\\^\\^\\^+$"
- constant: "^=====[[:space:]].*$"
- constant: "^\\+\\+\\+\\++$"
- type.keyword: ":.*:"
- identifier.macro: "\\{[a-z0-9]*\\}"
- identifier: "\\\\\\{[a-z0-9]*\\}"
- identifier: "\\+\\+\\+\\{[a-z0-9]*\\}\\+\\+\\+"
- statement: "^\\..*$"
- identifier: "^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]"
- constant.string: ".*[[:space:]]\\+$"
- constant.string: "_[^_]+_"
- constant.string: "\\*[^\\*]+\\*"
- constant.string: "\\+[^\\+]+\\+"
- constant.string: "`[^`]+`"
- constant.string: "\\^[^\\^]+\\^"
- constant.string: "~[^~]+~"
- constant.string: "'[^']+'"
- constant: "`{1,2}[^']+'{1,2}"
- symbol: "^[[:space:]]*[\\*\\.-]{1,5}[[:space:]]"
- bold default: "\\[\\[.*\\]\\]"
- bold default: "<<.*>>"