Skip to content

v0.6.0 Custom tokens, exposed language, & efficient shortcuts

Compare
Choose a tag to compare
@boatbomber boatbomber released this 21 Nov 23:19
· 14 commits to main since this release
  • Adds support for custom tokens via props.customLang. For example, {foo = "function"} will highlight occurrences of foo in the color set for "custom".
  • Exposes the language in the lexer as lexer.language, accessible via Highlighter.defaultLexer.language. Also adds type info into the language file instead of just true.
  • Efficient shortcuts to avoid as much work as possible. Doesn't update labels or populate tables that don't truly require it!

Full Changelog: v0.5.2...v0.6.0