lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> What about using something like the "here file" syntax from Unix?
>   blah
>   this is a long comment
>   blah
>   blah
> this is a long string
> blah

I'm with you. It could be one more option.
PHP uses `heredoc´ this way:

$var = <<<IDENTIFIER
anything you want here


Of course it only handles strings, but '--<<<' would be acceptable.

Maybe Brazilian keyboards are different

It is not 'that' different -- well, not my ABNT2 at least ;)

Before I get slammed... I know that /* can certainly be used in C/C++ code. Just not the latter, */

It is not common as '[[' and ']]' is. So, it would be another option.