Closed hxj0x closed 2 months ago
Although there are grammar errors, can we ensure that the grammar highlighting in this situation is also correct
No response
https://codemirror.net/try/?c=aW1wb3J0IHtiYXNpY1NldHVwLCBFZGl0b3JWaWV3fSBmcm9tICJjb2RlbWlycm9yIgppbXBvcnQge2phdmFzY3JpcHR9IGZyb20gIkBjb2RlbWlycm9yL2xhbmctamF2YXNjcmlwdCIKCm5ldyBFZGl0b3JWaWV3KHsKICBkb2M6ICJjb25zdCBzdHIgPSBgc3RyaW5nIHRleHQgJHt9IHN0cmluZyB0ZXh0YFxuIiwKICBleHRlbnNpb25zOiBbYmFzaWNTZXR1cCwgamF2YXNjcmlwdCgpXSwKICBwYXJlbnQ6IGRvY3VtZW50LmJvZHkKfSkK
I'm not sure you can call any highlighting for syntactically invalid input incorrect. But sure, attached patch makes this expression skippable.
Describe the issue
Although there are grammar errors, can we ensure that the grammar highlighting in this situation is also correct
Browser and platform
No response
Reproduction link
https://codemirror.net/try/?c=aW1wb3J0IHtiYXNpY1NldHVwLCBFZGl0b3JWaWV3fSBmcm9tICJjb2RlbWlycm9yIgppbXBvcnQge2phdmFzY3JpcHR9IGZyb20gIkBjb2RlbWlycm9yL2xhbmctamF2YXNjcmlwdCIKCm5ldyBFZGl0b3JWaWV3KHsKICBkb2M6ICJjb25zdCBzdHIgPSBgc3RyaW5nIHRleHQgJHt9IHN0cmluZyB0ZXh0YFxuIiwKICBleHRlbnNpb25zOiBbYmFzaWNTZXR1cCwgamF2YXNjcmlwdCgpXSwKICBwYXJlbnQ6IGRvY3VtZW50LmJvZHkKfSkK