Skip to content

Commit 6d0820e

Browse files
committed
syntax: support more single-line comment characters
According to the manual, section 14.2.1 [1], the characters #, |, and * are also supported as comment characters at the beginning of a line. [1]: http://ledger-cli.org/3.0/doc/ledger3.html#Comments-and-meta_002ddata Signed-off-by: Roland Hieber <[email protected]>
1 parent dbbfbc1 commit 6d0820e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/ledger.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ syn match ledgerOneCharDirective /^\%(P\|A\|Y\|N\|D\|C\)\s/
5454

5555
syn region ledgerBlockComment start=/^comment/ end=/^end comment/
5656
syn region ledgerBlockTest start=/^test/ end=/^end test/
57-
syn match ledgerComment /^;.*$/
57+
syn match ledgerComment /^[;|*#].*$/
5858
" comments at eol must be preceded by at least 2 spaces / 1 tab
5959
syn region ledgerMetadata start=/\%( \|\t\|^\s\+\);/ skip=/^\s\+;/ end=/^/
6060
\ keepend contained contains=ledgerTags,ledgerValueTag,ledgerTypedTag

0 commit comments

Comments
 (0)