diff options
author | Vladimir Parfinenko <vladimir.parfinenko@gmail.com> | 2011-02-27 15:44:29 +0600 |
---|---|---|
committer | Vladimir Parfinenko <vladimir.parfinenko@gmail.com> | 2011-02-27 15:44:29 +0600 |
commit | da341726c2f0518ae29c7d0f42244a1460f96969 (patch) | |
tree | b5785e7ac31aea9288e624060ddaa7b644aa7f8a /contrib/vim/syntax/ledger.vim | |
parent | 021fc50842a85d8357ca70c13e35b169a4d91e29 (diff) | |
download | fork-ledger-da341726c2f0518ae29c7d0f42244a1460f96969.tar.gz fork-ledger-da341726c2f0518ae29c7d0f42244a1460f96969.tar.bz2 fork-ledger-da341726c2f0518ae29c7d0f42244a1460f96969.zip |
vim. fix highlighting of accounts
fixes such situations: "baz:foo a foo:baz"
Diffstat (limited to 'contrib/vim/syntax/ledger.vim')
-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 d4097e2b..c6845488 100644 --- a/contrib/vim/syntax/ledger.vim +++ b/contrib/vim/syntax/ledger.vim @@ -35,7 +35,7 @@ syn match ledgerPosting /^\s\+[^[:blank:];][^;]*\ze\%($\|;\)/ \ 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 +syn match ledgerAccount /^\s\+\zs\%(\S\@<= \S\|\S\)\+\ze\%( \|\t\|\s*$\)/ contained syn match ledgerComment /^;.*$/ " comments at eol must be preceeded by at least 2 spaces / 1 tab |