[jira] [Commented] (GROOVY-10406) Dollar slashy string is too greedy

2021-12-23 Thread Paul King (Jira)


[ 
https://issues.apache.org/jira/browse/GROOVY-10406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17464549#comment-17464549
 ] 

Paul King commented on GROOVY-10406:


But this works:
{code}
assert ($/$$ /$ + 'x' + /$$/) == '$ x$$'
{code}
So, only immediately after a {{$$}} is not working?

> Dollar slashy string is too greedy
> --
>
> Key: GROOVY-10406
> URL: https://issues.apache.org/jira/browse/GROOVY-10406
> Project: Groovy
>  Issue Type: Bug
>  Components: lexer
>Affects Versions: 3.0.9, 4.0.0-rc-1
>Reporter: Daniil Ovchinnikov
>Priority: Major
> Attachments: screenshot-1.png
>
>
> This code compiles fine in 2.5.14, but fails to compile in 3.0.9.
> {code:groovy}
> println([$/$$/$ : /$$/])
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (GROOVY-10406) Dollar slashy string is too greedy

2021-12-07 Thread Paul King (Jira)


[ 
https://issues.apache.org/jira/browse/GROOVY-10406?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17454834#comment-17454834
 ] 

Paul King commented on GROOVY-10406:


Another example:
{code:java}
assert ($/$$/$ + 'x' + /$$/) == '$x$$'   // Unexpected input: '$/) == '$' at 
line: 1, column: 26
{code}
And the CST:
 !screenshot-1.png! 

> Dollar slashy string is too greedy
> --
>
> Key: GROOVY-10406
> URL: https://issues.apache.org/jira/browse/GROOVY-10406
> Project: Groovy
>  Issue Type: Bug
>  Components: lexer
>Affects Versions: 3.0.9
>Reporter: Daniil Ovchinnikov
>Priority: Major
> Attachments: screenshot-1.png
>
>
> This code compiles fine in 2.5.14, but fails to compile in 3.0.9.
> {code:groovy}
> println([$/$$/$ : /$$/])
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)