I'm using the Listings package and am having a bit of trouble properly highlighting a string such as
string x = 'a'
with single quotes. The issue is that in Latex the left single quote operator (`) and right single quote operator (') are not the same. I added the following modifiers to my \lstset to try and fix this:
(where mauve is
but this simply gives me output like the following (note how the semicolon is still mauve and thus the delimiters aren't working correctly):
So I can't figure out how to indicate that ' and ` should both be delimiters. Alternatively, perhaps there is just some symmetric (i.e. not left or right) single quote I can use in Latex?
Thanks so much