From 19556964ff69e448e621c9f33bf32b72fc9fbdd0 Mon Sep 17 00:00:00 2001 From: Aaron Bull Schaefer Date: Tue, 10 Feb 2015 11:35:54 -0800 Subject: Enable syntax-based folding of transactions This is much more useful compared to using just foldmethod=marker, and it could be enhanced to support other multi-line items in the future. --- syntax/beancount.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syntax') diff --git a/syntax/beancount.vim b/syntax/beancount.vim index 21aa4f1..a72b2a9 100644 --- a/syntax/beancount.vim +++ b/syntax/beancount.vim @@ -49,7 +49,7 @@ syn region beanPad matchgroup=beanKeyword start="^pad" end="$" contained \ contains=beanAccount,beanComment syn region beanTxn matchgroup=beanKeyword start="\v(txn)?\s+[*!]" skip="^\s" - \ end="^" contains=beanString,beanPost,beanComment,beanTag,beanLink,beanMeta contained + \ end="^" contains=beanString,beanPost,beanComment,beanTag,beanLink,beanMeta contained fold syn region beanPost start="^\v\C\s+[A-Z]@=" end="$" \ contains=beanAccount,beanAmount,beanComment,beanCost,beanPrice syn region beanMeta matchgroup=beanTag start="^\v\C\s+[a-z]+:(\s|$)@=" end="$" -- cgit v1.2.3-2-gb3c3