summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-03-26 16:38:41 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-03-26 16:38:41 -0400
commite282d55d63dc4b6a701e096232863a4253c191c3 (patch)
treefb23610bd5f74be72cb29834263406fcf5814215 /contrib
parentca42f2b9a7430198ce96b9daa2b876fb232b141f (diff)
downloadfork-ledger-e282d55d63dc4b6a701e096232863a4253c191c3.tar.gz
fork-ledger-e282d55d63dc4b6a701e096232863a4253c191c3.tar.bz2
fork-ledger-e282d55d63dc4b6a701e096232863a4253c191c3.zip
Johann Klähn: Updated ledger.vim to 0.0.5
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ledger.vim9
1 files 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