1
0
Fork 0
mirror of https://github.com/luzifer/vim.git synced 2024-11-14 10:12:45 +00:00
vim/after/ftplugin/abp.vim
Knut Ahlers c451fd6a36
Add ABP syntax highlighting
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-06-25 10:53:25 +02:00

6 lines
197 B
VimL

function! s:DetectABP()
if getline(1) =~ '\c^\s*\[\s*adblock\s*\(plus\s*\(\d\+\(\.\d\+\)*\s*\)\?\)\?]\s*$'
set filetype=abp
endif
endfunction
au BufNewFile,BufRead *.txt call s:DetectABP()