------art_16401_32245062.1150389229920
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,

I spotted this one when creating a Rake file, but I don't know if it's known
already.
I know that it's recommended to use parentheses for methods which solves
this
one as well.


dewd@marieta:~/t_$ /opt/ruby-1.9.0/bin/ruby rbug.rb
rbug.rb:6: syntax error, unexpected kDO_BLOCK, expecting tSTRING_CONTENT or
tSTRING_DBEG or tSTRING_DVAR or tSTRING_END
cmd :do do
       ^
dewd@marieta:~/t_$ cat rbug.rb


def cmd *a
end

cmd :do do
end


It only happens with the :do symbol.

Cheers,
Joao

------art_16401_32245062.1150389229920--