Is it possible to have match tokens be re-matched like the “contains=” part of vim syntax files ?
Right now, it is impossible to do another thing than “captures” for submatches, which don’t work well with repeating patterns (it only catches the last one).
For example, I have a construct like so :
@div.class.toto#myid attr=hello another="hello"
The regexp matches “@something(\s*(.classname|#idname|attr=stuff))*” (it is of course much more complicated than that and much less readable)
I can’t use a region because I have no end token (it ends when I can’t match anymore), and I can’t have submatch.
Would it be possible to add the option of having “patterns” on match constructs also ?