-
Notifications
You must be signed in to change notification settings - Fork 58
Description
Thank you for vim-racket! :-)
I would like to see FIXME, TODO and XXX (and maybe NOTE?) to be highlighted even if immediately followed by a colon.
In several other languages, I can type
<comment_character> TODO: some comment
and TODO (without the colon) is highlighted different from the normal comment color.
On the other hand, in vim-racket, writing
; TODO some comment
highlights TODO as expected, but
; TODO: some comment
highlights TODO in the regular comment color.
Since I type the colon without thinking, this means that to get the syntax highlighting for TODO etc. I need to go back and remove the colon, and it still looks as if something is missing. :-)
I guess this syntax highlighting behavior is because FIXME, TODO and XXX are, similar to other language syntax files, defined as keywords (syn keyword racketTodo FIXME TODO XXX contained), but a keyword in Racket includes the colon, so TODO: is no longer detected as introducing a TODO comment, but as its own and different keyword.