Single-line folding

I’m using CodeMirror 6 to implement a simple code editor for a custom language. CodeMirror supports folding, but I can’t quite find out whether it supports folding code on a single line as well. I want to support something like

a.b.c.d:1.2.3.4

being folded into

…d:v

Potentially, multiple folds can occur on a single line. Is this possible?

No, the folding system provided by the core libraries only supports multi-line folding. You may be able to write a custom solution if you’re only interested in a single language.