Closed GrandChaman closed 1 year ago
Ariadne currently uses character indices, not byte indices. I consider this to be a mistake that I want to fix eventually. I'm going to close this in favour of #57, but I'm happy to reopen it if you believe there's more going on here.
I noticed that when using an emoji in the source, depending on the range I specify to associate a label to it, I get a label that make sense or not.
Code to reproduce:
The output:
I think the versions with the ranges
0..1
,0..2
and0..3
don't make sense, but I would expect the last range (0..4
) to display the label correctly.