I was originally going to ask if 'prefix mode' in the syntax highlighting could also have a 'suffix mode'.

Then I noticed that the search and replace feature has support for regexp - could that code be put to work in the syntax highlighting?

Rather than choosing specific keywords or using prefix mode, you could write an expression to setup any sort of condition for highlighting something.