3

Gradle

/*

def v = "**/*.xml"

*/

Groovy think the */ inside the string is the end of block comment.

eastwater
  • 4,624
  • 9
  • 49
  • 118
  • 3
    It's the same for Java. Grammar limitation. If it's JavaDoc - you can use answer from https://stackoverflow.com/questions/631817/how-to-quote-in-javadocs – Seagull Jul 20 '17 at 21:50

1 Answers1

4

If you are commenting out a block of (syntactically correct) code, I find it easier to use if(false) {...} to avoid this problem.

pavon
  • 16,574
  • 1
  • 23
  • 25