Packages icon indicating copy to clipboard operation
Packages copied to clipboard

[Groovy] Function default parameter value is not parsed

Open jfcherng opened this issue 3 years ago • 0 comments

What happened?

It looks like default parameter value is not parsed.

image

Expected test

def say(msg = 'Hello', name = 'world String') {
//          ^ keyword.operator.assignment
//            ^^^^^^^ string.quoted.single
//                   ^ punctuation.separator
//                          ^ keyword.operator.assignment
//                            ^^^^^^^^^^^^^^ string.quoted.single
    return "$msg $name!"
}

jfcherng avatar Nov 02 '22 03:11 jfcherng