aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorNathan Grigg2015-06-22 17:47:31 -0700
committerNathan Grigg2015-06-22 17:48:53 -0700
commit31bb1394ba930cf1b7fb50d0e5869941ab18ac5d (patch)
tree1f2584691add6c297fe12e9deae7607d9bc906a3 /autoload
parent74be6aaca584457c4a487395d8a9849e6becff77 (diff)
downloadvim-beancount-31bb1394ba930cf1b7fb50d0e5869941ab18ac5d.tar.gz
Do not allow account names to end in colons (AlignCommodity)
Diffstat (limited to '')
-rw-r--r--autoload/beancount.vim2
1 files changed, 1 insertions, 1 deletions
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)