aboutsummaryrefslogtreecommitdiffstats
path: root/indent
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--indent/beancount.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/indent/beancount.vim b/indent/beancount.vim
index 29d7d9e..cfc8aa6 100644
--- a/indent/beancount.vim
+++ b/indent/beancount.vim
@@ -22,7 +22,8 @@ function! s:IsMetadata(str)
endfunction
function! s:IsTransaction(str)
- return a:str =~ '\v^\s*\d{4}-\d{2}-\d{2}\s+(txn\s+)?\S\s'
+ " The final \S represents the flag (e.g. * or !).
+ return a:str =~ '\v^\s*\d{4}-\d{2}-\d{2}\s+(txn\s+)?\S(\s|$)'
endfunction
function GetBeancountIndent(line_num)