News for hackers. Stuff that matters.
Re:Show HN: Penumbra, a perceptually optimized color palette... by siraben on Friday August 05, 2022 @06:41PM (#32362812)
Tree-sitter[0] can provide semantic highlighting and I've been using it with all the languages I program in, including writing my own grammar[1] for a language that didn't have syntax highlighting. The improvement in readability is a quantum leap, because colors actually have semantic meaning rather than just being eye candy.

With the situations you describe, you can write tree-sitter queries to make unsafe code highlighted in a different color, for instance, or highlight specific anti-patterns.

[0] https://tree-sitter.github.io/tree-sitter

[1] https://github.com/siraben/tree-sitter-formula

There are no comments on this comment yet.