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
48
48
syn match ledgerPreDeclarationName / ^\S\+\s\+\z s.*/ contained
49
49
syn match ledgerPreDeclarationDirective / ^\s\+\z s\S\+ / contained
50
50
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
+
51
55
syn match ledgerComment / ^;.*$/
52
56
" comments at eol must be preceded by at least 2 spaces / 1 tab
53
57
syn region ledgerMetadata start =/ \% ( \|\t\| ^\s\+\) ;/ skip =/ ^\s\+ ;/ end =/ ^/
@@ -84,6 +88,8 @@ highlight default link ledgerAmount Number
84
88
highlight default link ledgerPreDeclarationType Type
85
89
highlight default link ledgerPreDeclarationName Identifier
86
90
highlight default link ledgerPreDeclarationDirective Type
91
+ highlight default link ledgerDirective Type
92
+ highlight default link ledgerOneCharDirective Type
87
93
88
94
" syncinc is easy: search for the first transaction.
89
95
syn sync clear
You can’t perform that action at this time.
0 commit comments