]> git.sthu.org Git - vimconf.git/commitdiff
syntax: Add weechatlog
authorStefan Huber <shuber@sthu.org>
Fri, 1 Mar 2019 20:52:33 +0000 (21:52 +0100)
committerStefan Huber <shuber@sthu.org>
Fri, 1 Mar 2019 20:52:33 +0000 (21:52 +0100)
ftdetect/weechatlog.vim [new file with mode: 0644]
syntax/weechatlog.vim [new file with mode: 0644]

diff --git a/ftdetect/weechatlog.vim b/ftdetect/weechatlog.vim
new file mode 100644 (file)
index 0000000..66debef
--- /dev/null
@@ -0,0 +1 @@
+au BufRead,BufNewFile *.weechatlog         set filetype=weechatlog
diff --git a/syntax/weechatlog.vim b/syntax/weechatlog.vim
new file mode 100644 (file)
index 0000000..6c10d95
--- /dev/null
@@ -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="$"