diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-08-08 19:38:27 +0200 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-08-08 19:38:27 +0200 |
| commit | f59dd77f602a5523283161fe80d6b377c845a097 (patch) | |
| tree | 885c2efaf1f25d14d2b73c42ff4705cb79bcf9e9 /src | |
| parent | 1eb2b8321b2225cbe32e3904c3a96c4110c529cf (diff) | |
add rc/asciidoc.kak for asciidoc highlighting
Diffstat (limited to 'src')
| -rw-r--r-- | src/kakrc | 1 | ||||
| -rw-r--r-- | src/rc/asciidoc.kak | 11 |
2 files changed, 12 insertions, 0 deletions
@@ -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 diff --git a/src/rc/asciidoc.kak b/src/rc/asciidoc.kak new file mode 100644 index 00000000..4e9a55cb --- /dev/null +++ b/src/rc/asciidoc.kak @@ -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 } + |
