aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tim Segers <tim.segers@prodrive-technologies.com>2025-11-13 17:06:40 +0100
committerGravatar Tim Segers <tim.segers@prodrive-technologies.com>2025-11-13 17:06:40 +0100
commit8d56153dbd3bc4e47db9b4853c335ea32fb56d3f (patch)
treeae12165c3147d8b9f09b357466b530ec556f76b8
parent43eb1eccb2494da9eed0e0d06c694d43c57acbdd (diff)
downloadtodo.vim-master.tar.gz
Add [!] and fixed-width blocksHEADmaster
-rw-r--r--snippets/todo.snippets5
-rw-r--r--syntax/todo.vim6
2 files changed, 6 insertions, 5 deletions
diff --git a/snippets/todo.snippets b/snippets/todo.snippets
index 10e3042..30c7359 100644
--- a/snippets/todo.snippets
+++ b/snippets/todo.snippets
@@ -1,16 +1,13 @@
snippet [
- - [ ]
-
+ - [ ] ${1}
snippet <s
#+BEGIN_SRC
${1}
#+END_SRC
-
snippet <e
#+BEGIN_EXAMPLE
${1}
#+END_EXAMPLE
-
snippet <r
#+RESULTS:
#+BEGIN_EXAMPLE
diff --git a/syntax/todo.vim b/syntax/todo.vim
index 5584831..2805c15 100644
--- a/syntax/todo.vim
+++ b/syntax/todo.vim
@@ -35,6 +35,7 @@ syn match todoCbDone "\[x\]"
syn match todoCbNope "\[n\]"
syn match todoCbTodo "\[ \]"
syn match todoCbWait "\[w\]"
+syn match todoCbAttn "\[!\]"
hi link todoCbDelegated Special
hi link todoCbDoing Identifier
@@ -42,6 +43,7 @@ hi link todoCbDone Constant
hi link todoCbNope Comment
hi link todoCbTodo Todo
hi link todoCbWait Error
+hi link todoCbAttn Error
" todo planning
syn match todoDeadline /^DEADLINE .*/
@@ -69,15 +71,17 @@ hi link todoBlock String
" custom blocks
syn region todoAlert start="!!!" end="!!!"
syn region todoVerb start="```" end="```"
+syn match todoLit /^\s*:.*$/
hi link todoAlert Special
hi link todoVerb String
+hi link todoLit String
" org lists
syn match todoList "^\(\s*[-+]\|\s\+\*\)\(\s\|$\)" nextgroup=todoListItem
syn match todoList "^\s*\(\a\|\d\+\)[.)]\(\s\|$\)" nextgroup=todoListItem
-syn match todoListItem /.*$/ contained contains=todoLink,todoCbDelegated,todoCbDoing,todoCbDone,todoCbNope,todoCbTodo,todoCbWait
+syn match todoListItem /.*$/ contained contains=todoLink,todoCbDelegated,todoCbDoing,todoCbDone,todoCbNope,todoCbTodo,todoCbWait,todoCbAttn
hi link todoList todoBold
hi link todoListItem Normal