I'm using the listings package with a custom language definition. In my language, I have types of the form:
Bar and Baz are keywords in the language and should therefore be highlighted. Foo is an arbitrary identifier and needs no special highlighting treatment.
If I separate the above tokens with whitespace, everything is fine. But if I do not separate them with whitespace (as in the above example), I only get appropriate highlighting for Baz, not for Bar.
I've looked at the documentation (http://texdoc.net/texmf-dist/doc/latex/listings/listings.pdf), but haven't found a way to specify that the @ sign should not be part of the identifier. I tried including @ as a keyword:
but that didn't seem to help.