aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Grigg2015-02-10 19:10:11 -0800
committerNathan Grigg2015-02-10 19:10:11 -0800
commit0367fefa737080d49eebbb20390d3b5c100941b1 (patch)
treee1bd10d119c0740524d4f66ca0d176d15fb6832a
parent61822995510b7f83dca91bc28e2ac05c8f07a333 (diff)
parent19556964ff69e448e621c9f33bf32b72fc9fbdd0 (diff)
downloadvim-beancount-0367fefa737080d49eebbb20390d3b5c100941b1.tar.gz
Merge branch 'elasticdog-syntax-folding'
-rw-r--r--ftplugin/beancount.vim2
-rw-r--r--syntax/beancount.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/ftplugin/beancount.vim b/ftplugin/beancount.vim
index 159ad0f..20c2058 100644
--- a/ftplugin/beancount.vim
+++ b/ftplugin/beancount.vim
@@ -7,7 +7,7 @@ endif
let b:did_ftplugin = 1
let b:undo_ftplugin = "setlocal foldmethod< comments< commentstring<"
-setl foldmethod=marker
+setl foldmethod=syntax
setl comments=b:;
setl commentstring=;%s
diff --git a/syntax/beancount.vim b/syntax/beancount.vim
index e55d0f4..01d9710 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="$"