cp $(CURDIR)/tks.pl $(CURDIR)/debian/tks/usr/bin/tks
cp -R $(CURDIR)/lib/WRMS* $(CURDIR)/debian/tks/usr/share/perl5
+ # Vim auto-syntax-highlighting stuff
+ cp ext/vim/syntax/tks.vim \
+ $(CURDIR)/debian/tks/usr/share/vim/vim70/syntax/
+ cp ext/vim/syntax/tks.vim \
+ $(CURDIR)/debian/tks/usr/share/vim/vim71/syntax/
+ cp ext/vim/ftdetect/tks.vim \
+ $(CURDIR)/debian/tks/usr/share/vim/addons/ftdetect/
+
+
dh_gencontrol
dh_md5sums
--- /dev/null
+" Vim syntax file
+" Language: tks
+" Maintainer: Martyn Smith <martyn@catalyst.net.nz>
+" Last Change: 2008 May 26
+
+" Quit when a (custom) syntax file was already loaded
+if exists("b:current_syntax")
+ finish
+endif
+
+syntax match tksWR "^\s*\S\+" nextgroup=tksTime skipwhite
+syntax match tksTime "\s[0-9.]\+" nextgroup=tksDescription skipwhite contained
+syntax region tksDescription start="\S" end="$" skipwhite contained keepend
+
+syn region comment start="#" end="$"
+syn match date "^\d\d\d\d-\d\d-\d\d"
+syn match date "^\d\+/\d\+/\d\d"
+
+hi def link date Label
+hi def link comment Comment
+hi def link tksWR PreProc
+hi def link tksTime Type
+hi def link tksDescription String
+
+let b:current_syntax = "tks"