| /abcde $2$$ $ident $$ $ident2 asd/ |
| ----- |
| Groovy script |
| Compound regular expression |
| PsiElement(regex begin)('/') |
| GrStringContentImpl(GString content element) |
| PsiElement(regex content)('abcde $2$$ ') |
| GString injection |
| PsiElement($)('$') |
| Reference expression |
| PsiElement(identifier)('ident') |
| GrStringContentImpl(GString content element) |
| PsiElement(regex content)(' $$ ') |
| GString injection |
| PsiElement($)('$') |
| Reference expression |
| PsiElement(identifier)('ident2') |
| GrStringContentImpl(GString content element) |
| PsiElement(regex content)(' asd') |
| PsiElement(regex end)('/') |