The library’s default behavior for double-click and by-group selection uses the character category system, which cannot express the kind of thing you’re looking for here. But you can of course provide your own cursor motion commands and mouse selection style to implement such a thing.