1 Answer
1

You can use otherkeywords for your special string; from the listings documentation about otherkeywords:

Defines keywords that contain other characters, or start with digits. Each
given "keyword" is printed in keyword style, but without changing the "letter",
"digit" and "other" status of the characters. This key is designed to define
keywords like =>, ->, -->, --, ::, and so on.