I am trying to set up a script for the conceal feature to prettify strings in Python. This worked fine so far for single word substitutions. But now I would like to replace "not in" with "∉". I tried this:
syntax match pyOperator "not in" conceal cchar=∉
But that does not match anything and I don't see why not. e.g.
x not in l
stays x not in l
However
syntax match pyOperator " not in " conceal cchar=∉
works. But I want the former version, as this one makes
x not in l
to x∉l
, hiding the spaces.
Why does the second version work and the first does not and how can I make it work?
btw. I also tried other variants, such as
syntax match pyOperator "\s\+not\s\+in\s\+'" conceal cchar=∉
That one does not work t all either, which also puzzles me, as t is a superset of the second version.