groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Milles (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-9004) Parser fails to recognize token sequence expression newline bitwise-operator expression
Date Wed, 20 Feb 2019 16:06:00 GMT

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

Eric Milles updated GROOVY-9004:
--------------------------------
    Description: 
Consider the following:
{code}
1
| 2

// or

true
| false

// or

[]
| whatever
{code}
Each of these expression statements are generating an unexpected token exception at "|". This
is significant because this type of expression sequence is often used to build Spock data
tables. If user adds newline by accident or formatter does so automatically, the table is
no longer recognized and compilation fails.

This came to me by way of: [https://github.com/groovy/groovy-eclipse/issues/822]

Possibly related: GROOVY-8810

  was:
Consider the following:
{code:groovy}
1
| 2

// or

true
| false

// or

[]
| whatever
{code}

Each of these expression statements are generating an unexpected token exception at "|". 
This is significant because this type of expression sequence is often used to build Spock
data tables.  If user adds newline by accident or formatter does automatically, the table
is no longer recognized and compilation fails.

This cam to me by way of: https://github.com/groovy/groovy-eclipse/issues/822

Possibly related: GROOVY-8810


> Parser fails to recognize token sequence expression newline bitwise-operator expression
> ---------------------------------------------------------------------------------------
>
>                 Key: GROOVY-9004
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9004
>             Project: Groovy
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 2.4.16
>            Reporter: Eric Milles
>            Priority: Major
>
> Consider the following:
> {code}
> 1
> | 2
> // or
> true
> | false
> // or
> []
> | whatever
> {code}
> Each of these expression statements are generating an unexpected token exception at "|".
This is significant because this type of expression sequence is often used to build Spock
data tables. If user adds newline by accident or formatter does so automatically, the table
is no longer recognized and compilation fails.
> This came to me by way of: [https://github.com/groovy/groovy-eclipse/issues/822]
> Possibly related: GROOVY-8810



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

Mime
View raw message