File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,11 @@ syn region ledgerTransaction start=/^[[:digit:]~=]/ skip=/^\s/ end=/^/
23
23
syn match ledgerTransactionDate / ^\d\S\+ / contained
24
24
syn match ledgerTransactionExpression / ^[=~]\s\+\z s.*/ contained
25
25
syn match ledgerPosting / ^\s\+ [^[:blank:];][^;]*\z e\% ($\| ;\) /
26
- \ contained transparent contains= ledgerAccount,ledgerMetadata
26
+ \ contained transparent contains= ledgerAccount,ledgerAmount, ledgerMetadata
27
27
" every space in an account name shall be surrounded by two non-spaces
28
28
" every account name ends with a tab, two spaces or the end of the line
29
29
syn match ledgerAccount / ^\s\+\z s\% (\S\@ <= \S\|\S\)\+\z e\% ( \|\t\|\s *$\) / contained
30
+ syn match ledgerAmount / \S\@ <=\% ( \|\t\)\s *\z s\% ([^;[:space:]]\|\s\+ [^;[:space:]]\)\+ / contained
30
31
31
32
syn region ledgerPreDeclaration start =/ ^\( account\| payee\| commodity\| tag\) / skip =/ ^\s / end =/ ^/
32
33
\ keepend transparent
@@ -61,6 +62,7 @@ highlight default link ledgerStartApply Tag
61
62
highlight default link ledgerEndApply Tag
62
63
highlight default link ledgerApplyHead Type
63
64
highlight default link ledgerAccount Identifier
65
+ highlight default link ledgerAmount Number
64
66
highlight default link ledgerPreDeclarationType Type
65
67
highlight default link ledgerPreDeclarationName Identifier
66
68
highlight default link ledgerPreDeclarationDirective Type
You can’t perform that action at this time.
0 commit comments