remark icon indicating copy to clipboard operation
remark copied to clipboard

highlightSpans behaves incorrectly in the presence of (

Open nrinaudo opened this issue 5 years ago • 4 comments

The presence of ( near a highlighted span yields odds behaviours:

For example: case `class Token`( will include the ( in the highlighted region - no matter how many spaces are inserted before it.

This does not occur if you replace the ( by, say, a {.

nrinaudo avatar Jan 22 '20 20:01 nrinaudo

@nrinaudo could you point to an example of the problem you are experiencing?

dvberkel avatar Jan 28 '20 17:01 dvberkel

I do not mean this to be snarky, but: what more do you want than the example I’ve given you? Should I present it in terms of input slides and screenshot of the output?

nrinaudo avatar Jan 28 '20 18:01 nrinaudo

No snarky-ness is assumed. I was not familiar with highlighting functionality that is all. The project has attracted new maintainers recently. So not every one is is aware of all the functionality.

Having read the wiki on the topic, I now understand your problem.

We will take some time to figure out why this occurs.

dvberkel avatar Jan 29 '20 07:01 dvberkel

Do not hurry on my account, I worked around it for my own problem. This was just meant as a record of the issue, so that you're aware of it and can tackle it if and when convenient.

nrinaudo avatar Jan 29 '20 08:01 nrinaudo