| def xml = $/ |
| <xml> |
| $tic\tac |
| </xml> |
| /$ |
| ----- |
| Groovy script |
| Variable definitions |
| Modifiers |
| PsiElement(def)('def') |
| PsiWhiteSpace(' ') |
| Variable |
| PsiElement(identifier)('xml') |
| PsiWhiteSpace(' ') |
| PsiElement(=)('=') |
| PsiWhiteSpace(' ') |
| Compound regular expression |
| PsiElement($/ regex begin)('$/') |
| GrStringContentImpl(GString content element) |
| PsiElement($/ regex content)('\n <xml>\n ') |
| GString injection |
| PsiElement($)('$') |
| Reference expression |
| PsiElement(identifier)('tic') |
| GrStringContentImpl(GString content element) |
| PsiElement($/ regex content)('\tac\n </xml>\n') |
| PsiElement($/ regex end)('/$') |