helix icon indicating copy to clipboard operation
helix copied to clipboard

Nested comments don't syntax highlight properly in WASM Text Format

Open samualtnorman opened this issue 5 months ago • 0 comments

Summary

It's great that Helix now has out-the-box support for wat_server, but the depended on repository for the WASM Text Format hasn't been maintained in 3 years. There is a 2 year old open pull request on it to fix this bug on that repository but I don't see it being merged any time soon.

Maybe the WAT grammar repo could be forked or for now, the PR's fork could be switched to. I don't exactly know what the best solution there is.

Reproduction Steps

(; (; just a nested comment ;) :)

(func)

To be fair, you can see above even GitHub gets this wrong.

Helix log

No response

Platform

Linux

Terminal Emulator

alacritty 0.15.1

Installation Method

nixpkgs

Helix Version

helix 25.01.1 (e7ac2fcd)

samualtnorman avatar Jun 13 '25 08:06 samualtnorman