On 4/10/06, Marco Kunze <[EMAIL PROTECTED]> wrote: > Hi, > > I often use things like > (TODO blablabla) > in my LaTeX documents in order to mark todos. However these are not > highlighted > as usual since they are not within a comment environment. Since LaTeX has no > comments which can be used within a line (like /* ... */) I don't want to use > normal comments, it would make me use a whole line for every todo and render > the > text mostly unreadable. > > So I wanted to ask if there is a fast and simple hack to make vim highlight > something like (TODO ...) as a comment environment with the TODO highlighted > in > the TODO style. > > Unfortunately I don't have the time to try this by myself, I guess my approach > would be to write a new LaTeX-highlighting file and include the old one, then > extending it with the new grammar. But I really don't have the time to try > this > by myself.
Try syn match ToDo /TODO.*$/ or syn keyword ToDo /TODO/ or match ToDo /TODO.*$/ Yakov
