On Wed, Nov 24, 2021 at 4:57 PM Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > > Hello, > > "Bruce D'Arcus" <bdar...@gmail.com> writes: > > > I can't fully pin this down, but I and a couple of others I've > > discussed this with are seeing the following behavior. > > > > With this example: > > > > a citation [cite:@couper2014] and another [cite:@kohn2006] > > > > ... the first citation is highlighted, and the second (and any > > subsequent) is not. > > > > In some way I can't reproduce, I can then get the fontification to > > work correctly, but if I restart, the problem reappears. > > > > Discussed more here: > > > > https://github.com/bdarcus/citar/discussions/430#discussioncomment-1693707 > > > > Can anyone else confirm this? > > I couldn't reproduce it, but I saw something fishy in the fontification > code. I fixed it. Hopefully, your problem is gone, too. Crossing > fingers.
I haven't yet had a chance to test the latest commit, but another user did and reported: "I have what I think is this commit (b3cc2f793, the latest one as of right now) and the above bug still happens for me." ----------- His explanation of that bug, which I can reproduce on my end: I can replicate this behaviour with two citations on one line, but only when the first citation is a valid reference key: [cite:@Sno1959:TwoCultures] [cite:@Snow] Just changing one character in the first citation key causes the second to flip between being highlighted or not. ------------- So to be clear: Two citations on one line. If both keys are valid, the second one is not highlighted. If I change the first key so it is invalid, both are then highlighted. Can you reproduce that? Bruce