diff options
author | Nathan Grigg | 2016-10-08 13:25:49 -0700 |
---|---|---|
committer | GitHub | 2016-10-08 13:25:49 -0700 |
commit | 0b9b6d78b4dc8de56a34c7908c3f47dbb86ceea7 (patch) | |
tree | 56893bf12516601d511fa38115fce6004d25f547 /autoload | |
parent | e17eb3d4991fc049d08d382d3192992eaa033572 (diff) | |
parent | ed6f2154e964116e36de601702f1ac4010d74aaf (diff) | |
download | vim-beancount-0b9b6d78b4dc8de56a34c7908c3f47dbb86ceea7.tar.gz |
Merge pull request #26 from jtraub/flag_support
Improve flag support
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/beancount.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/beancount.vim b/autoload/beancount.vim index 2096679..ecd423b 100644 --- a/autoload/beancount.vim +++ b/autoload/beancount.vim @@ -18,7 +18,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([\-/[:digit:]]+\s+(balance|price))? +\S+[^:] ') + let end_acc = matchend(s, '^\v(([\-/[:digit:]]+\s+(balance|price))|\s+[!&#?%PSTCURM])?\s+\S+[^:] ') if end_acc < 0 | continue | endif " Where does commodity amount begin? let end_space = matchend(s, '^ *', end_acc) |