blob: d2690623a521a652aad5d316b02f7f3a099e7804 [file] [log] [blame]
def code = $/
def normal = '\b\t\n\r'
def slashy = /\b\t\n\r/
assert '$alphabet'.size() == 26
assert normal.size() == 4
assert slashy.size() == 8
/$
-----
Groovy script
Variable definitions
Modifiers
PsiElement(def)('def')
PsiWhiteSpace(' ')
Variable
PsiElement(identifier)('code')
PsiWhiteSpace(' ')
PsiElement(=)('=')
PsiWhiteSpace(' ')
Compound regular expression
PsiElement($/ regex begin)('$/')
GrStringContentImpl(GString content element)
PsiElement($/ regex content)('\n def normal = '\b\t\n\r'\n def slashy = /\b\t\n\r/\n assert '')
GString injection
PsiElement($)('$')
Reference expression
PsiElement(identifier)('alphabet')
GrStringContentImpl(GString content element)
PsiElement($/ regex content)(''.size() == 26\n assert normal.size() == 4\n assert slashy.size() == 8\n')
PsiElement($/ regex end)('/$')