Skip to content

Commit fa7fbd2

Browse files
authored
Merge pull request #62 from ajgrf/master
Fix report highlighting
2 parents 5d5b74d + 0a4c0f8 commit fa7fbd2

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

autoload/ledger.vim

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

ftplugin/ledger.vim

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ endif
159159
" }}}
160160

161161
" Highlight groups for Ledger reports {{{
162-
hi! link LedgerNumber Number
163-
hi! link LedgerNegativeNumber Special
164-
hi! link LedgerCleared Constant
165-
hi! link LedgerPending Todo
166-
hi! link LedgerTarget Statement
167-
hi! link LedgerImproperPerc Special
162+
hi link LedgerNumber Number
163+
hi link LedgerNegativeNumber Special
164+
hi link LedgerCleared Constant
165+
hi link LedgerPending Todo
166+
hi link LedgerTarget Statement
167+
hi link LedgerImproperPerc Special
168168
" }}}
169169

170170
let s:rx_amount = '\('.

0 commit comments

Comments
 (0)