Skip to content

Commit 0a4c0f8

Browse files
committed
Fix LedgerNumber regexps to match integer values
1 parent cdd0194 commit 0a4c0f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/ledger.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,8 +570,8 @@ function! ledger#output(report)
570570
nnoremap <silent> <buffer> <tab> <c-w><c-p>
571571
nnoremap <silent> <buffer> q <c-w><c-p>@=winnr("#")<cr><c-w>c
572572
" Add some coloring to the report
573-
syntax match LedgerNumber /-\@1<!\d\+\([,.]\d\+\)\+/
574-
syntax match LedgerNegativeNumber /-\d\+\([,.]\d\+\)\+/
573+
syntax match LedgerNumber /-\@1<!\d\+\([,.]\d\+\)*/
574+
syntax match LedgerNegativeNumber /-\d\+\([,.]\d\+\)*/
575575
syntax match LedgerImproperPerc /\d\d\d\+%/
576576
return 1
577577
endf

0 commit comments

Comments
 (0)