zls icon indicating copy to clipboard operation
zls copied to clipboard

Is `zls` performing any transformation on `_`?

Open xphoniex opened this issue 2 years ago • 2 comments

Screenshot from 2023-08-07 08-54-26

As you can see, the _ is orange in the returned highlight response, I'm not sure I've seen this in other lsps. Is there any formatting/transformation happening on underlines?

xphoniex avatar Aug 07 '23 05:08 xphoniex

I don't think there is any special handling for underscores. If your editor supports markdown lsp responses (hard to tell from your screenshot) this may be because underscores should be escaped in markdown. If you can provide me with some information on your editor setup/config so that I can reproduce this issue, I may be able to more reliably figure out the underlying issue.

Techatrix avatar Aug 08 '23 11:08 Techatrix

I don't think this is markdown, as I didn't have to touch markdown code, when changing highlights before. anyway I'm on vim8 with https://github.com/ycm-core/YouCompleteMe/commit/3ededaed2f9923d50bf3860ba8dace0f7d2724cd.

xphoniex avatar Aug 08 '23 15:08 xphoniex