You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/04/10 22:16:00 UTC
[jira] [Resolved] (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 ]
Eric Milles resolved GROOVY-10024.
----------------------------------
Fix Version/s: 4.0.0-alpha-3
Resolution: Fixed
> 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
> Fix For: 4.0.0-alpha-3
>
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> 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)