I would like to have the text TODO: as a different color within the comments for any language. I use the keyword TODO: with the packages TODOreview and SublimeLinter-annotations and It would be nice to differentiate the word TODO: from other comments.
I've tried the following regex for C++.tmLanguage with no success. And scoping the regex with comment.todo within the tmTheme
/\/\/.*?(TODO:)/
(TODO:)
(?:\#|\/\/)[^\n\r]TODO:(?<![\?>])
/TODO:(?<![\?>])/
Full example:
C++.tmLanguage
<dict>
<key>match</key>
<string>(\/\/.)*?(TODO:)</string>
<key>name</key>
<string>comment.todo</string>
</dict>
theme.tmTheme
<dict>
<key>name</key>
<string>Comment Todo</string>
<key>scope</key>
<string>comment.todo</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#9B859D</string>
</dict>
</dict>