From: Stefan Huber Date: Fri, 1 Mar 2019 20:52:33 +0000 (+0100) Subject: syntax: Add weechatlog X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=7a4715055703cbb653cf65bb7f5cd89d9feacf2b;p=vimconf.git syntax: Add weechatlog --- diff --git a/ftdetect/weechatlog.vim b/ftdetect/weechatlog.vim new file mode 100644 index 0000000..66debef --- /dev/null +++ b/ftdetect/weechatlog.vim @@ -0,0 +1 @@ +au BufRead,BufNewFile *.weechatlog set filetype=weechatlog diff --git a/syntax/weechatlog.vim b/syntax/weechatlog.vim new file mode 100644 index 0000000..6c10d95 --- /dev/null +++ b/syntax/weechatlog.vim @@ -0,0 +1,7 @@ +syn spell notoplevel +syn match Constant "^\(\d\+-\d\+-\d\+\s\+\)\?\d\d:\d\d\(:\d\d\)\?" +syn match Type "\t\S\+\t" +syn region Comment start="\t--\t" end="$" +syn region Comment start="\tℹ\t" end="$" +syn region DiffAdded start=" ▬▬▶ " end="$" +syn region DiffRemoved start=" ◀▬▬ " end="$"