You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2021/04/10 02:01:00 UTC

[jira] [Assigned] (GROOVY-10024) Dollar slashy /$ string ending in backslash "breaks" the parser

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

Paul King reassigned GROOVY-10024:
----------------------------------

    Assignee: Paul King

> Dollar slashy /$ string ending in backslash "breaks" the parser
> ---------------------------------------------------------------
>
>                 Key: GROOVY-10024
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10024
>             Project: Groovy
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 3.0.7
>            Reporter: Przemek Bielicki
>            Assignee: Paul King
>            Priority: Blocker
>
> The minimal reproducer is the following:
> {code:groovy}
> def s1 = $/Failing string\\/$
> def s2 = $/Will not be parsed as a new line/$
> println s1
> {code}
> A line starting with {{def s2}} will be "swallowed". The result of it is:
> {code:java}
> Failing string\/$
>         def s2 = /Will not be parsed as a new line
> {code}
> It looks like {{\/$}} is ignored by the parser and it's continuing until the next "valid" occurence of {{/$}}.
> It worked in 2.x



--
This message was sent by Atlassian Jira
(v8.3.4#803005)