Highlight TODO keywords
Clone or download
tarsius No longer treat incomplete searches as non-matches
We search for text that matches the keyword regexp.  When there is
a match, then we checked whether the corresponding text is within
a comment or doc-string.  If so, then we considered that a match.

Otherwise, the regexp search succeeded but the syntax check failed,
then we used to consider that a non-match, which is incorrect; what
we have in this case is an incomplete search, not a failed search.

In that case we have to finish the search from the current position.
This can happen repeatedly, so we implement it using a new function
`hl-todo--search', which calls itself to resume an incomplete search.

Fixes #26.
Latest commit cdc2266 Oct 8, 2018
Permalink
Failed to load latest commit information.
.gitignore Add Makefile Mar 18, 2018
Makefile Add Makefile Mar 18, 2018
README.md Fix broken EmacsWiki link Mar 28, 2018
hl-todo.el No longer treat incomplete searches as non-matches Oct 8, 2018

README.md

Highlight TODO and similar keywords in comments and strings

To highlight keywords turn on hl-todo-mode in individual buffers or use the the global variant global-hl-todo-mode.

This package also provides commands for moving to the next or previous keyword and to invoke occur with a regexp that matches all known keywords. If you want to use these commands, then you should bind them in hl-todo-mode-map, e.g.:

(define-key hl-todo-mode-map (kbd "C-c p") 'hl-todo-previous)
(define-key hl-todo-mode-map (kbd "C-c n") 'hl-todo-next)
(define-key hl-todo-mode-map (kbd "C-c o") 'hl-todo-occur)

See this list on the Emacswiki for other packages that implement the same basic features, but which might also provide additional features that you might like, but which I don't deem necessary.