File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ syn match ledgerPreDeclarationType /^\(account\|payee\|commodity\|tag\)/ contain
4848syn match ledgerPreDeclarationName / ^\S\+\s\+\z s.*/ contained
4949syn match ledgerPreDeclarationDirective / ^\s\+\z s\S\+ / contained
5050
51+ syn match ledgerDirective
52+ \ /^\%(alias\|assert\|bucket\|capture\|check\|define\|expr\|fixed\|include\|year\)\s/
53+ syn match ledgerOneCharDirective / ^\% (P\| A\| Y\| N\| D\| C\)\s /
54+
5155syn match ledgerComment / ^;.*$/
5256" comments at eol must be preceded by at least 2 spaces / 1 tab
5357syn region ledgerMetadata start =/ \% ( \|\t\| ^\s\+\) ;/ skip =/ ^\s\+ ;/ end =/ ^/
@@ -84,6 +88,8 @@ highlight default link ledgerAmount Number
8488highlight default link ledgerPreDeclarationType Type
8589highlight default link ledgerPreDeclarationName Identifier
8690highlight default link ledgerPreDeclarationDirective Type
91+ highlight default link ledgerDirective Type
92+ highlight default link ledgerOneCharDirective Type
8793
8894" syncinc is easy: search for the first transaction.
8995syn sync clear
You can’t perform that action at this time.
0 commit comments