forked from zyedidia/micro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
asciidoc.yaml
51 lines (42 loc) · 1.23 KB
/
asciidoc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
filetype: asciidoc
detect:
filename: "\\.(asc|asciidoc|adoc)$"
rules:
# main header
- preproc: "^====+$"
# h1
- statement: "^==[[:space:]].*$"
- statement: "^----+$"
# h2
- symbol: "^===[[:space:]].*$"
- symbol: "^~~~~+$"
# h4
- type: "^====[[:space:]].*$"
- type: "^\\^\\^\\^\\^+$"
# h5
- constant: "^=====[[:space:]].*$"
- constant: "^\\+\\+\\+\\++$"
# attributes
- type.keyword: ":.*:"
- identifier.macro: "\\{[a-z0-9]*\\}"
- identifier: "\\\\\\{[a-z0-9]*\\}"
- identifier: "\\+\\+\\+\\{[a-z0-9]*\\}\\+\\+\\+"
# Paragraph Title
- statement: "^\\..*$"
# source
- identifier: "^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]"
# Other markup
- constant.string: ".*[[:space:]]\\+$"
- constant.string: "_[^_]+_"
- constant.string: "\\*[^\\*]+\\*"
- constant.string: "\\+[^\\+]+\\+"
- constant.string: "`[^`]+`"
- constant.string: "\\^[^\\^]+\\^"
- constant.string: "~[^~]+~"
- constant.string: "'[^']+'"
- constant: "`{1,2}[^']+'{1,2}"
# bullets
- symbol: "^[[:space:]]*[\\*\\.-]{1,5}[[:space:]]"
# anchors
- "bold default": "\\[\\[.*\\]\\]"
- "bold default": "<<.*>>"