2013-10-30 13:38:40 +04:00
|
|
|
hook global BufCreate .*\.asciidoc %{ set buffer filetype asciidoc }
|
2012-08-08 21:38:27 +04:00
|
|
|
|
2013-12-04 02:15:59 +04:00
|
|
|
defhl asciidoc
|
|
|
|
addhl -def-group asciidoc regex (\A|\n\n)[^\n]+\n={2,}\h*\n\h*$ 0:blue
|
|
|
|
addhl -def-group asciidoc regex (\A|\n\n)[^\n]+\n-{2,}\h*\n\h*$ 0:cyan
|
|
|
|
addhl -def-group asciidoc regex ^\h+([-\*])\h+[^\n]*(\n\h+[^-\*]\S+[^\n]*)*$ 0:yellow 1:cyan
|
|
|
|
addhl -def-group asciidoc regex ^([-=~]+)\n[^\n\h].*?\n\1$ 0:magenta
|
|
|
|
addhl -def-group asciidoc regex (?<!\w)\+[^\n]+?\+(?!\w) 0:green
|
|
|
|
addhl -def-group asciidoc regex (?<!\w)_[^\n]+?_(?!\w) 0:yellow
|
|
|
|
addhl -def-group asciidoc regex (?<!\w)\*[^\n]+?\*(?!\w) 0:red
|
2012-08-08 21:38:27 +04:00
|
|
|
|
2013-12-04 02:15:59 +04:00
|
|
|
hook global WinSetOption filetype=asciidoc %{ addhl ref asciidoc }
|
|
|
|
hook global WinSetOption filetype=(?!asciidoc).* %{ rmhl asciidoc }
|
2012-08-08 21:38:27 +04:00
|
|
|
|