Skip to content

Commit 801122e

Browse files
Fix list highlights to not override markup highlights. Closes #169.
1 parent ea9a944 commit 801122e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/org_legacy.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ hi def link org_comment Comment
4949
" 1) list item
5050
" a. list item
5151
" a) list item
52-
syn match org_list_ordered "^\s*\(\a\|\d\+\)[.)]\(\s\|$\)" nextgroup=org_list_item
52+
syn match org_list_ordered "^\s*\(\a\|\d\+\)[.)]\ze\(\s\|$\)" nextgroup=org_list_item
5353
hi def link org_list_ordered Identifier
5454

5555
" Unordered Lists:
5656
" - list item
5757
" * list item
5858
" + list item
5959
" + and - don't need a whitespace prefix
60-
syn match org_list_unordered "^\(\s*[-+]\|\s\+\*\)\(\s\|$\)" nextgroup=org_list_item
60+
syn match org_list_unordered "^\(\s*[-+]\|\s\+\*\)\ze\(\s\|$\)" nextgroup=org_list_item
6161
hi def link org_list_unordered Identifier
6262

6363
" Definition Lists:

0 commit comments

Comments
 (0)