mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 08:51:46 +03:00
add rc/asciidoc.kak for asciidoc highlighting
This commit is contained in:
parent
1eb2b8321b
commit
f59dd77f60
@ -3,6 +3,7 @@ hook global WinCreate .* %{ addhl number_lines }
|
||||
|
||||
runtime rc/cpp.kak
|
||||
runtime rc/kakrc.kak
|
||||
runtime rc/asciidoc.kak
|
||||
runtime rc/git.kak
|
||||
runtime rc/global.kak
|
||||
runtime rc/diff.kak
|
||||
|
11
src/rc/asciidoc.kak
Normal file
11
src/rc/asciidoc.kak
Normal file
@ -0,0 +1,11 @@
|
||||
hook global BufCreate .*\.asciidoc %{ setb filetype asciidoc }
|
||||
|
||||
hook global WinSetOption filetype=asciidoc %{
|
||||
addhl group asciidoc-highlight
|
||||
addhl -group asciidoc-highlight regex ^[^\n]+\n={2,}\h*$ 0:blue
|
||||
addhl -group asciidoc-highlight regex ^[^\n]+\n-{2,}\h*$ 0:cyan
|
||||
addhl -group asciidoc-highlight regex ^\h+[-\*]\h+([^\n:]+:)?[^\n]*(\n\h+[^-\*]\S+[^\n]*)*$ 0:yellow 1:green
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=(?!asciidoc).* %{ rmhl asciidoc-higlight }
|
||||
|
Loading…
Reference in New Issue
Block a user