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

[jira] [Updated] (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 ]

Przemyslaw Bielicki updated GROOVY-10024:
-----------------------------------------
    Summary: Dollar slashy /$ string ending in backslash "breaks" the parser  (was: Dollar slashy /$ string ending in backslash breaks the parser)

> 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: Przemyslaw Bielicki
>            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". 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)