mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-10 14:42:47 +09:00
This changes all the syntax files in the runtime directory and also changes how syntax highlighting is done from inside micro.
34 lines
967 B
YAML
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: "<<.*>>"
|