Also support type=speculationrules and type=importmap for <script> tags. #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "importmap_speculationrules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This was noticed while fixing https://crbug.com/1473875 upstream (which was about pretty printing, unrelated to CodeMirror6), that there's currently no syntax highlighting for these inline JSON
Attached patch provides something like this by using the JS parser (which is already a dependency) in expression mode instead, to avoid pulling in an additional parser.
Thanks, works like a charm!
Line 18 causes the following error:
@lianee I guess you have a very old version of @lezer/javascript locked in your package lock (and since the dependency is transitive there's no semver requirement in @codemirror/lang-html forcing it).
@marijnh that was it: I had @lezer/javascript@1.0.2 installed as a dependency of @codemirror/lang-javascript
npm i @lezer/javascriptnow install an up to date version and all is good.Thanks a lot
Pull request closed