groovy

Multiline comment + regexp

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.6
  • Fix Version/s: None
  • Component/s: lexer
  • Labels:
    None
  • Environment:
    Groovy Version: 1.6.0 JVM: 1.6.0_12
  • Number of attachments :
    0

Description

bug.groovy
println 'bug'
/*
println ('x' ==~ /\w*/)
*/

 
bug.groovy: 3: unexpected token: ) @ line 3, column 23.
   println ('x' ==~ /\w*/)
                         ^

1 error

Activity

Hide
Roshan Dawrani added a comment -

Not sure if this is a valid request. That kind of multi-line comment does not seem to be allowed by Java too. "*/" is supposed to end a multi-line comment irrespective of the context in which it appears.

Show
Roshan Dawrani added a comment - Not sure if this is a valid request. That kind of multi-line comment does not seem to be allowed by Java too. "*/" is supposed to end a multi-line comment irrespective of the context in which it appears.
Hide
blackdrag blackdrag added a comment -

I agree, so I close it.

Show
blackdrag blackdrag added a comment - I agree, so I close it.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: