summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann Klähn <kljohann@gmail.com>2009-06-23 01:20:20 +0200
committerJohann Klähn <kljohann@gmail.com>2009-06-23 01:20:20 +0200
commit1d8111b43c8c7c355bb45c9c1973e05f885b0603 (patch)
tree7ffbb829f7152e0dcf3ab4f72c019292d32fa252
parent8e8d9e5c852b43eea956a93498d496210572b7ed (diff)
downloadfork-ledger-1d8111b43c8c7c355bb45c9c1973e05f885b0603.tar.gz
fork-ledger-1d8111b43c8c7c355bb45c9c1973e05f885b0603.tar.bz2
fork-ledger-1d8111b43c8c7c355bb45c9c1973e05f885b0603.zip
Fix small 'bug' on accounts with spaces
-rw-r--r--contrib/vim/syntax/ledger.vim2
1 files changed, 1 insertions, 1 deletions
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