ZH version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
75% Positive
Analyzed from 453 words in the discussion.
Trending Topics
#language#useful#highlighting#don#code#common#deterministic#full#per#need

Discussion (15 Comments)Read Original on HackerNews
https://repo.autonoma.ca/repo/treetrek/tree/HEAD/render/rule...
Great news for a language whose last stable release was 20 years ago
Is this a linux issue / support issue?
You generally never need to highlight a whole file, only the part you're looking at. Which by definition must be fuzzy since you don't have the full source, the part you see will not parse as a complete program so you need to guess. This is actually one of the nastier parts of writing a highlighter, and it must be done for every language.
The lesson is that if you're going to be fuzzy you might as well be learned too and the results are pretty good.
This is more useful than it appears at first glance. It would be just as useful running on the CPU, which I'm sure it can.
Presumably this could also be a useful trait when live highlighting of files when editing, as in-progress typing is likely to be unparseable sometimes.