Skip to content

Commit 0757fec

Browse files
committed
feat: Allow manual fold markers in syntax folding mode
Closes #19
1 parent bc15c70 commit 0757fec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

syntax/ledger.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ syntax region ledgerBlockComment start=/^comment/ end=/^end comment/
7272
syntax region ledgerBlockTest start=/^test/ end=/^end test/
7373
execute 'syntax match ledgerComment /^['.s:line_comment_chars.'].*$/'
7474

75+
" Allow manual fold markers in comments
76+
execute 'syntax region ledgerManualFold start=/^['.s:line_comment_chars.']\s*{{{/ end=/^['.s:line_comment_chars.']\s*}}}/ fold transparent'
77+
7578
" Tags (metadata) are handled a bit differently in ledger-cli vs. hledger even
7679
" though they both nested in comments the same way.
7780
if b:ledger_is_hledger

0 commit comments

Comments
 (0)