groovy

fix code appearance on codehaus/confluence

Details

  • Type: Task Task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-JSR-5
  • Fix Version/s: 1.1-rc-2
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    1

Description

The first groovy example on the QuickStart page http://groovy.codehaus.org/Quick+Start is:

//hello.groovy
println "hello, world"for (arg in this.args ) {
println "Argument:" + arg;
}
// this is a comment
/* this is a comment for block.you can do like thisthis.args.each{ arg ->
println "hello, ${arg}"
}
*/

This did not work for me. The correct sytax would be:

println "hello, world"
for (arg in this.args) {
println "Argument: " + arg;
}

Note that this might be the very first example some tries out on groovy.

Secondly, the helloworld example piggybacks some information about comments too. This is confusing because the comments have incorrect syntax highlighting - for, this etc turn up in different colours within the comment.

Issue Links

Activity

Hide
Dierk Koenig added a comment -

the codehaus crash left the pages as generated from confluence with sometimes missing whitespace characters

Show
Dierk Koenig added a comment - the codehaus crash left the pages as generated from confluence with sometimes missing whitespace characters
Hide
Paul King added a comment -

I believe Quick+Start and Groovy+Beans are now fixed.

Show
Paul King added a comment - I believe Quick+Start and Groovy+Beans are now fixed.
Hide
Paul King added a comment -

Seems to have been fixed for some time

Show
Paul King added a comment - Seems to have been fixed for some time

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: