Release 2.2.0
Improvements
Including hyphens in the search wasn't wanted for most languages. Therefore a new parameter was added to the highlightCurrentWord
extension.
const selector = ".string, .comment, .keyword, .regex"
const filter = start => !getClosestToken(editor, selector, 0, 0, start)
const includeHyphens = position => getLanguage(editor, position) == "css"
editor.addExtensions(
highlightCurrentWord(filter, includeHyphens)
)
Fixes
In TSX, opening tags comming directly after another tag are now highlighted. This was an issue with Prism's TSX grammar.