File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
vim/unpublished/simple-todo-list/syntax Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 10
10
syntax sync fromstart
11
11
set foldmethod = syntax
12
12
13
- syn region simpleTodoTitle start =/ ^[A-Z ]\+ $/ end =/ ^---\+ $/
14
- syn region simpleTodoSection start =/ ^\( ---\+\n\)\@ <=./ end =/ \z e\n\n [A-Z ]\+\n ---\+ $/ fold containedin =simpleTodoTitle
15
13
16
- hi def link simpleTodoTitle Special
14
+ syn region simpleTodoSection start =/ ^[^-].\+\n ----\+ $/ end =/ \n [^-].\+\n ----\+ $/ me =s - 1 keepend contains =simpleTodoTitle,simpleTodoBody
15
+ syn region simpleTodoBody start =/ ./ end =/ __nothing_matches__/ contained fold contains =simpleTodoTaskOpen,simpleTodoTaskDone
16
+ syn match simpleTodoTaskOpen / ^ *❒ .\+ $/ contained
17
+ syn match simpleTodoTaskDone / ^ *✔ .\+ $/ contained
18
+ syn region simpleTodoTitle start =/ ^[^-].\+\n\z\( ----\+ $\) / end =/ ^\z 1/ contained
19
+
20
+ hi def link simpleTodoBody Normal
21
+ hi def link simpleTodoTitle PreProc
22
+ hi def link simpleTodoTaskOpen Function
23
+ hi def link simpleTodoTaskDone Type
17
24
18
25
let b: current_syntax = " simple-todo"
You can’t perform that action at this time.
0 commit comments