What do you mean by this? Do you mean how I am adding the syntax highlighting in the .grammar given to Lezer?
To be included in JupyterLab, your JavaScript assets are bundled using webpack under the wood. The link within the CodeMirror lezer grammar is definitely ignored by webpack. So I’m not sure the code get properly packaged.