I’m writing a custom mode, and was wondering if there is any problem in having a token that represents zero characters. From the perspective of the renderer, you end up with
<span class = "cm-before">blah</span> <span class = "cm-zero-width"></span> <span class = "cm-after">something</span>