Crystal multi line comment

Viewed 1276

Are there any multi line comments in Crystal ? Such as Ruby does :

=begin
    this is a
    multiline
    comment in Ruby
=end

This will simply give me an error in Crystal :

unexpected token: =

2 Answers

Crystal doesn't have multi-line comments. Simply prefix the block of lines you want to comment out with # single-line comments. Your editor should be able to do this for you.

Crystal allows multi-line comments by highlighting multiple lines and then using the shortcut Alt+M

Related