News for hackers. Stuff that matters.
Re:Tree Sitter and the Complications of Parsing Languages by harrisfarris on Wednesday November 24, 2021 @04:16AM (#29328251)
I feel the same way. Never understood what the point of highlighting certain keywords or if something is a type or a function would be, it's all obvious from the grammar and where things are positioned anyway. And When I read code I want to read all of it, not draw any particular attention to "if" or "else".
Re:Tree Sitter and the Complications of Parsing Languages by robert-brown on Wednesday November 24, 2021 @12:10PM (#29332321)
Keyword highlighting is explicitly called out as an antipattern in the book Human Factors and Typography for More Readable Programs, which I highly recommend.