v0.6.0 Custom tokens, exposed language, & efficient shortcuts
- Adds support for custom tokens via
props.customLang
. For example,{foo = "function"}
will highlight occurrences offoo
in the color set for"custom"
. - Exposes the language in the lexer as
lexer.language
, accessible viaHighlighter.defaultLexer.language
. Also adds type info into the language file instead of justtrue
. - 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