Skip to content

Release 2.2.0

Compare
Choose a tag to compare
@FIameCaster FIameCaster released this 04 Nov 17:51
· 302 commits to main since this release

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.