Issue Details (XML | Word | Printable)

Key: GROOVY-1333
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Paul King
Reporter: Binil Thomas
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
groovy

fix code appearance on codehaus/confluence

Created: 05/Jun/06 05:11 AM   Updated: 26/Oct/07 07:54 PM
Component/s: None
Affects Version/s: 1.0-JSR-5
Fix Version/s: 1.1-rc-2

Time Tracking:
Not Specified

File Attachments: None
Image Attachments:

1. groovy.jpg
(40 kB)
Issue Links:
Duplicate
 


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Dierk Koenig added a comment - 05/Jun/06 05:57 AM
the codehaus crash left the pages as generated from confluence with sometimes missing whitespace characters

Paul King added a comment - 12/Aug/06 08:03 PM
I believe Quick+Start and Groovy+Beans are now fixed.

Paul King added a comment - 26/Oct/07 07:54 PM
Seems to have been fixed for some time