Can you add Lezer tags for text/keywords in an existing language?
I’ve tried using styleTags
but it doesn’t seem to recognize just any text. Is it limited to what’s already registered in the language grammar/parser?
const customizedJavaScriptLanguage = javascriptLanguage.configure({
dialect: 'jsx',
props: [
styleTags({
'xyz': tags.keyword
})
]
});