]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/asciidoc.yaml
Add converted syntax files
[micro.git] / runtime / syntax / asciidoc.yaml
1 filetype: asciidoc
2
3 detect: 
4     filename: "\\.(asc|asciidoc|adoc)$"
5
6 rules:
7     - preproc: "^====+$"
8     - statement: "^==[[:space:]].*$"
9     - statement: "^----+$"
10     - symbol: "^===[[:space:]].*$"
11     - symbol: "^~~~~+$"
12     - type: "^====[[:space:]].*$"
13     - type: "^\\^\\^\\^\\^+$"
14     - constant: "^=====[[:space:]].*$"
15     - constant: "^\\+\\+\\+\\++$"
16     - type.keyword: ":.*:"
17     - identifier.macro: "\\{[a-z0-9]*\\}"
18     - identifier: "\\\\\\{[a-z0-9]*\\}"
19     - identifier: "\\+\\+\\+\\{[a-z0-9]*\\}\\+\\+\\+"
20     - statement: "^\\..*$"
21     - identifier: "^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]"
22     - constant.string: ".*[[:space:]]\\+$"
23     - constant.string: "_[^_]+_"
24     - constant.string: "\\*[^\\*]+\\*"
25     - constant.string: "\\+[^\\+]+\\+"
26     - constant.string: "`[^`]+`"
27     - constant.string: "\\^[^\\^]+\\^"
28     - constant.string: "~[^~]+~"
29     - constant.string: "'[^']+'"
30     - constant: "`{1,2}[^']+'{1,2}"
31     - symbol: "^[[:space:]]*[\\*\\.-]{1,5}[[:space:]]"
32     - bold default: "\\[\\[.*\\]\\]"
33     - bold default: "<<.*>>"