File: asciidoc.yaml

package info (click to toggle)
micro 2.0.15-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,128 kB
  • sloc: sh: 265; makefile: 77; xml: 53
file content (51 lines) | stat: -rw-r--r-- 1,258 bytes parent folder | download | duplicates (2)
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": "<<.*>>"