syntax_core 0.0.2
syntax_core: ^0.0.2 copied to clipboard
TextMate-grammar syntax highlighting in pure Dart. Tokenizes code with VS Code grammars and themes and renders tokens, diffs, HTML, or ANSI. No Flutter required.
0.0.2 #
HighlightedDiff.ofandHighlightedDiff.tokenizehonorbudgetfor parsed patches too, not only for diffs with full texts. A large patch is tokenized a slice at a time, the new side first, with the state carried across slices within a hunk and reset at each hunk as before; lines not tokenized yet are plain.PatchViewinsyntax_fluttertherefore colors long parsed patches between frames instead of in one blocking call.