Files
zyedidia.micro/runtime/syntax/asciidoc.yaml
Zachary Yedidia 2fcb40d5a9 Use new syntax highlighting engine from zyedidia/highlight
This changes all the syntax files in the runtime directory and also
changes how syntax highlighting is done from inside micro.
2017-02-26 11:14:35 -05:00

34 lines
967 B
YAML

filetype: asciidoc
detect:
filename: "\\.(asc|asciidoc|adoc)$"
rules:
- red: "^====+$"
- red: "^==[[:space:]].*$"
- red: "^----+$"
- magenta: "^===[[:space:]].*$"
- magenta: "^~~~~+$"
- green: "^====[[:space:]].*$"
- green: "^\\^\\^\\^\\^+$"
- brightblue: "^=====[[:space:]].*$"
- brightblue: "^\\+\\+\\+\\++$"
- brightgreen: ":.*:"
- brightred: "\\{[a-z0-9]*\\}"
- red: "\\\\\\{[a-z0-9]*\\}"
- red: "\\+\\+\\+\\{[a-z0-9]*\\}\\+\\+\\+"
- yellow: "^\\..*$"
- magenta: "^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]"
- yellow: ".*[[:space:]]\\+$"
- yellow: "_[^_]+_"
- yellow: "\\*[^\\*]+\\*"
- yellow: "\\+[^\\+]+\\+"
- yellow: "`[^`]+`"
- yellow: "\\^[^\\^]+\\^"
- yellow: "~[^~]+~"
- yellow: "'[^']+'"
- cyan: "`{1,2}[^']+'{1,2}"
- brightmagenta: "^[[:space:]]*[\\*\\.-]{1,5}[[:space:]]"
- brightwhite: "\\[\\[.*\\]\\]"
- brightwhite: "<<.*>>"