]> git.sthu.org Git - shutils.git/commitdiff
vim: add weechatlog syntax file
authorStefan Huber <shuber@sthu.org>
Sun, 6 Jan 2013 22:39:29 +0000 (23:39 +0100)
committerStefan Huber <shuber@sthu.org>
Sun, 6 Jan 2013 22:39:29 +0000 (23:39 +0100)
dotfiles/vim/.vim/syntax/weechatlog.vim [new file with mode: 0644]
dotfiles/vim/.vimrc

diff --git a/dotfiles/vim/.vim/syntax/weechatlog.vim b/dotfiles/vim/.vim/syntax/weechatlog.vim
new file mode 100644 (file)
index 0000000..35f5c13
--- /dev/null
@@ -0,0 +1,6 @@
+syn spell notoplevel
+syn match Constant "^\(\d\+-\d\+-\d\+\s\+\)\?\d\{2}:\d\{2}\(:\d\{2}\)\?"
+syn match Type "       \S\+    "
+syn region Comment start="\t--\t" end="$"
+syn region DiffAdded start="   ▬▬▶       " end="$"
+syn region DiffRemoved start=" ◀▬▬       " end="$"
index 7c4d049abaa82c181a0149509c4e750eb539cf07..7016d05d3984e491f4e43d32f11ecc6b651ea513 100644 (file)
@@ -92,10 +92,11 @@ au Filetype fortran         set cindent cst csto=0
 
 
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-"  IRSSI logs
+"  IRC logs
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 
-au BufRead,BufNewFile */.irssi/logs/*.log    set filetype=irssilog
+au BufRead,BufNewFile */.irssi/logs/*.log  set filetype=irssilog
+au BufRead,BufNewFile *.weechatlog         set filetype=weechatlog
 
 
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""