From 1d8111b43c8c7c355bb45c9c1973e05f885b0603 Mon Sep 17 00:00:00 2001 From: Johann Klähn Date: Tue, 23 Jun 2009 01:20:20 +0200 Subject: Fix small 'bug' on accounts with spaces --- contrib/vim/syntax/ledger.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/vim/syntax/ledger.vim') diff --git a/contrib/vim/syntax/ledger.vim b/contrib/vim/syntax/ledger.vim index 1c1968e4..8914cf2a 100644 --- a/contrib/vim/syntax/ledger.vim +++ b/contrib/vim/syntax/ledger.vim @@ -33,7 +33,7 @@ syn match Metadata /^\s\+;.*/ contained syn match Comment /^;.*$/ " 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 Account /^\s\+\zs\%(\S\|\S \S\)\+\ze\%([ ]\{2,}\|\t\s*\|\s*$\)/ contained +syn match Account /^\s\+\zs\%(\S \S\|\S\)\+\ze\%([ ]\{2,}\|\t\s*\|\s*$\)/ contained syn match Posting /^\s\+[^[:blank:];].*$/ contained transparent contains=Account -- cgit v1.2.3