[ 
https://issues.apache.org/jira/browse/GROOVY-5311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King closed GROOVY-5311.
-----------------------------

> Wrong line/col info for GStrings
> --------------------------------
>
>                 Key: GROOVY-5311
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5311
>             Project: Groovy
>          Issue Type: Bug
>          Components: parser-antlr
>            Reporter: Guillaume Delcroix
>            Assignee: Daniel Sun
>            Priority: Minor
>             Fix For: 2.6.0-alpha-1
>
>
> GStrings have problems with their various sub parts: the constant strings and 
> the variables interpolated.
> With this example:
> {code}
> def gs1 = "-$a-${b}-${->c}-"
> {code}
> The first constant string represents "-$ instead of just the minus sign.
> The second and third constant are -$ instead of just the minus sign again.
> And the last constant is -", instead of just the minus sign, it's going one 
> character too far.
> Now on to the variables.
> Variable a is okay.
> Varible b is actually {b} and I think it should be just b
> And the closure expression is jut right too.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to