Show HN: Kiki-highlight – small fast syntax highligter in Zig

  • Posted 29 minutes ago by Liangxianzhe
  • 1 points
https://github.com/kiki-app/kiki-highlight
There are many syntax highlighter in JS, but few options in low level languages. Treesitter is great but a bit heavy.

Kiki-highlight is to fill the gap. It is single file, with comptime-specialized lexer in Zig. It can lex ~250 MB/s. Comes with 18 languages support, a C API and CLI.

The highlight result can be seen in https://kikiai.app/playground/ydIHb4Br-vXg

0 comments