Hi there,
In codemirror, when we double click a sequence of punctuation marks, they will be selected.
But when part of the punctuation marks is in atomic range, this also worked, then the select range will get a wrong location of endpoints.
Here is the demo: CodeMirror-selection-in-widget - CodeSandbox