diff options
author | Johann Klähn <kljohann@gmail.com> | 2010-09-15 20:46:18 +0200 |
---|---|---|
committer | Johann Klähn <kljohann@gmail.com> | 2010-09-15 20:46:18 +0200 |
commit | 2a82edb9f0b418ca6c855b09cf9ec6fbe4f88d47 (patch) | |
tree | 90538198a9aa4d7496fecb5185cf7d7295c6bb1f /contrib | |
parent | 48866466141d1ad0874c676a251cee9d57d99fdb (diff) | |
download | fork-ledger-2a82edb9f0b418ca6c855b09cf9ec6fbe4f88d47.tar.gz fork-ledger-2a82edb9f0b418ca6c855b09cf9ec6fbe4f88d47.tar.bz2 fork-ledger-2a82edb9f0b418ca6c855b09cf9ec6fbe4f88d47.zip |
vim. highlight metadata on same line as posting
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/vim/syntax/ledger.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/vim/syntax/ledger.vim b/contrib/vim/syntax/ledger.vim index 70473232..2a49e93b 100644 --- a/contrib/vim/syntax/ledger.vim +++ b/contrib/vim/syntax/ledger.vim @@ -32,7 +32,7 @@ syn region ledgerTransaction start=/^[[:digit:]~]/ skip=/^\s/ end=/^/ \ fold keepend transparent contains=ledgerTransactionDate,ledgerMetadata,ledgerPosting syn match ledgerTransactionDate /^\d\S\+/ contained syn match ledgerPosting /^\s\+[^[:blank:];][^;]*\ze\%($\|;\)/ - \ contained transparent contains=ledgerAccount + \ contained transparent contains=ledgerAccount,ledgerMetadata " every space in an account name shall be surrounded by two non-spaces " every account name ends with a tab, two spaces or the end of the line syn match ledgerAccount /^\s\+\zs\%(\S \S\|\S\)\+\ze\%( \|\t\|\s*$\)/ contained |