From e282d55d63dc4b6a701e096232863a4253c191c3 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 26 Mar 2009 16:38:41 -0400 Subject: [PATCH] =?UTF-8?q?Johann=20Kl=C3=A4hn:=20Updated=20ledger.vim=20t?= =?UTF-8?q?o=200.0.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contrib/ledger.vim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/contrib/ledger.vim b/contrib/ledger.vim index c9c725a0..fbe00f62 100644 --- a/contrib/ledger.vim +++ b/contrib/ledger.vim @@ -1,12 +1,15 @@ " Vim syntax file " filetype: ledger -" Version: 0.0.4 +" Version: 0.0.5 +" by Johann Klähn; Use according to the terms of the GPL>=2. " by Stefan Karrmann; Use according to the terms of the GPL>=2. " by Wolfgang Oertl; Use according to the terms of the GPL>=2. " Revision history +" 2009-03-25 J. Klähn: Allow Metadata in postings (Ledger 3.0) +" Also fixed alignment for multi-byte-characters " 2009-01-28 S.Karrmann: minor fixes " 2009-01-27 third version by S.Karrmann. -" better extraction of the amount of the transaction +" better extraction of the amount of the posting " decimal separator can be one of '.' and ','. " 2005-02-05 first version (partly copied from ledger.vim 0.0.1) @@ -22,7 +25,7 @@ syntax clear " region: a normal posting syn region postNorm start=/^\d/ skip=/^\s/ end=/^/ fold keepend transparent contains=postDate,Metadata syn match postDate /^\d\S\+/ contained -syn match Metadata /^\s\+;.*$/ contained +syn match Metadata /^\s\+;.*/ contained syn match Comment /^;.*$/ highlight default link Comment SpecialKey