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: =
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: =
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.
#
at the start of the line—so just use that. Even vim has :s/^/# /
, which operates on the selected block in visual line mode. –
Lenlena :s/^/# /,
trick in vim –
Ponzo Crystal allows multi-line comments by highlighting multiple lines and then using the shortcut Alt+M
© 2022 - 2024 — McMap. All rights reserved.