I had been noticing weirdness when using janet-mode with rainbow-delimiters-mode, but this PR seems to help for at least the above case.
Here's a screenshot of how things can look without the PR code:
Here, the upper left white rectangle is the cursor.
I don't know why the closing parenthesis on the last line has a white background.
In any case, the "rainbow" colors are broken in the decl-normalize form.
The initial opening parenthesis is red (to the left of decl-normalize) while the matching closing one is orange (last visible character on the line that has (* (? (* ...).
Starting from the opening parenthesis to the left of set, the rainbow colors seem to go away, only to resume after the last backtick.
@AlbertoGP Thanks for this -- at least locally it seems to yield a nicer experience with code such as this:
I had been noticing weirdness when using janet-mode with rainbow-delimiters-mode, but this PR seems to help for at least the above case.
Here's a screenshot of how things can look without the PR code:
Here, the upper left white rectangle is the cursor.
I don't know why the closing parenthesis on the last line has a white background.
In any case, the "rainbow" colors are broken in the
decl-normalize
form.The initial opening parenthesis is red (to the left of
decl-normalize
) while the matching closing one is orange (last visible character on the line that has(* (? (* ...
).Starting from the opening parenthesis to the left of
set
, the rainbow colors seem to go away, only to resume after the last backtick.