From 31bb1394ba930cf1b7fb50d0e5869941ab18ac5d Mon Sep 17 00:00:00 2001 From: Nathan Grigg Date: Mon, 22 Jun 2015 17:47:31 -0700 Subject: Do not allow account names to end in colons (AlignCommodity) --- autoload/beancount.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/beancount.vim b/autoload/beancount.vim index 93373d1..ba2a5cc 100644 --- a/autoload/beancount.vim +++ b/autoload/beancount.vim @@ -15,7 +15,7 @@ function! beancount#align_commodity(line1, line2) " This matches an account name followed by a space. There may be " some conflicts with non-transaction syntax that I don't know about. " It won't match a comment or any non-indented line. - let end_acc = matchend(s, '^\v([-\d]+\s+(balance|price))? +\S+ ') + let end_acc = matchend(s, '^\v([-\d]+\s+(balance|price))? +\S+[^:] ') if end_acc < 0 | continue | endif " Where does commodity amount begin? let end_space = matchend(s, '^ *', end_acc) -- cgit v1.2.3-2-gb3c3