File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
" Force old regex engine (:help two-engines)
15
15
let s: oe = v: version < 704 ? ' ' : ' \%#=1'
16
+ let s: lb1 = v: version < 704 ? ' \@<=' : ' \@1<='
16
17
17
18
" for debugging
18
19
syntax clear
@@ -30,9 +31,9 @@ syn match ledgerPosting /^\s\+[^[:blank:];][^;]*\ze\%($\|;\)/
30
31
" every space in an account name shall be surrounded by two non-spaces
31
32
" every account name ends with a tab, two spaces or the end of the line
32
33
exe ' syn match ledgerAccount ' .
33
- \ ' /' .s: oe .' ^\s\+\zs\%(\S\@1<= \S\|\S\)\+\ze\%( \|\t\|\s*$\)/ contained'
34
+ \ ' /' .s: oe .' ^\s\+\zs\%(\S' . s: lb1 . ' \S\|\S\)\+\ze\%( \|\t\|\s*$\)/ contained'
34
35
exe ' syn match ledgerAmount ' .
35
- \ ' /' .s: oe .' \S\@1<= \%( \|\t\)\s*\zs\%([^;[:space:]]\|\s\+[^;[:space:]]\)\+/ contained'
36
+ \ ' /' .s: oe .' \S' . s: lb1 . ' \%( \|\t\)\s*\zs\%([^;[:space:]]\|\s\+[^;[:space:]]\)\+/ contained'
36
37
37
38
syn region ledgerPreDeclaration start =/ ^\( account\| payee\| commodity\| tag\) / skip =/ ^\s / end =/ ^/
38
39
\ keepend transparent
You can’t perform that action at this time.
0 commit comments