mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 20:41:49 +03:00
fa72d27f9a
* Kak relies on the kakrc file to be in ../share/kak/kakrc relative to kak binary rather than in the same directory * Added an install target to the Makefile
15 lines
718 B
Plaintext
15 lines
718 B
Plaintext
hook global BufCreate .*\.asciidoc %{ set buffer filetype asciidoc }
|
|
|
|
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
|
|
|
|
hook global WinSetOption filetype=asciidoc %{ addhl ref asciidoc }
|
|
hook global WinSetOption filetype=(?!asciidoc).* %{ rmhl asciidoc }
|
|
|