Fork me on GitHub

Dear Calva-friends: Can I get some help testing this PR? It is about a more Paredit-aware, and much more efficient, highlighting of matching brackets and rainbows. The efficiency part is visible when you test it, pay attention to the forms at the very edges of the window as you scroll it slowly. This makes a big difference mostly for large files (like Clojure core.clj, but also for slightly more common cases). The Paredit aware bit is the most important. If something is indicated to be a bracket pair by the highlighting, then Paredit should navigate and edit it as such, awlays. It is a rather big change, even if not touching all that much of the code, so testing it a bit before release is extra important. Here's the VSIX, for your convenience. (See the PR for known issues.)

✔️ 4

I need help testing some more. Here's something like a rewrite of that highlighting PR. It is about 5X faster, and more accurate. Also ignores (`#_`) work again, more accurate than the current Calva. In theory it should in all just be better than the current Calva release, so please run with it and help catch any unlikely quirks.

👍 4

Alright so there was a problem with regexes there. Fix is building. Grab it from the PR or wait for me to post a link. The fix also addresses an old issue with bracket literals like \(.


I installed it and will use it while working today


Awesome. I will probably back away from the performance part of the fix, b/c really tricky corner cases.


The latest build fixes some of the issues with #_ highlighting, but not all. So run with that, preferably.


so far so good on my end

❤️ 4

asked this in the general channel, but was rightfully redirected here. any suggestions?


seems like this issue is related but i’m on a 2020.* version:


I'm off to bed in a minute, but if you can paste a repro at the clj-kondo channel or repo I'm willing to take a look tomorrow.


clj-kondo now has built-in support for compojure, but when you use refer all it might not be able to resolve the symbol. just not use that 🙂


well that sure is easy, i didn’t realize the fix is just to be more accurate with the refs , thanks @U04V15CAJ!