
I've tested with following code in https://codemirror.net/demo/theme.html
function printWidgetTitle(widget) {
const title = widget?.window?.title ?? "no name";
console.log(`Title is ${title}`);
}
printWidgetTitle({
window: {
title: "Book Viewer"
}
});
Notes
?. is ok. It was resolved by #6255
I tested || instead of ?? and It is valid syntax highlight.
So, I think that ?? break the syntax highlight.
