]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/asciidoc.yaml
Use new syntax highlighting engine from zyedidia/highlight
[micro.git] / runtime / syntax / asciidoc.yaml
1 filetype: asciidoc
2
3 detect:
4     filename: "\\.(asc|asciidoc|adoc)$"
5
6 rules:
7     - red: "^====+$"
8     - red: "^==[[:space:]].*$"
9     - red: "^----+$"
10     - magenta: "^===[[:space:]].*$"
11     - magenta: "^~~~~+$"
12     - green: "^====[[:space:]].*$"
13     - green: "^\\^\\^\\^\\^+$"
14     - brightblue: "^=====[[:space:]].*$"
15     - brightblue: "^\\+\\+\\+\\++$"
16     - brightgreen: ":.*:"
17     - brightred: "\\{[a-z0-9]*\\}"
18     - red: "\\\\\\{[a-z0-9]*\\}"
19     - red: "\\+\\+\\+\\{[a-z0-9]*\\}\\+\\+\\+"
20     - yellow: "^\\..*$"
21     - magenta: "^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]"
22     - yellow: ".*[[:space:]]\\+$"
23     - yellow: "_[^_]+_"
24     - yellow: "\\*[^\\*]+\\*"
25     - yellow: "\\+[^\\+]+\\+"
26     - yellow: "`[^`]+`"
27     - yellow: "\\^[^\\^]+\\^"
28     - yellow: "~[^~]+~"
29     - yellow: "'[^']+'"
30     - cyan: "`{1,2}[^']+'{1,2}"
31     - brightmagenta: "^[[:space:]]*[\\*\\.-]{1,5}[[:space:]]"
32     - brightwhite: "\\[\\[.*\\]\\]"
33     - brightwhite: "<<.*>>"