Skip to content

Instantly share code, notes, and snippets.

@COMBORICO
Last active May 20, 2018 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save COMBORICO/dc9d458e524060763519d0a1e45fcfa1 to your computer and use it in GitHub Desktop.
Save COMBORICO/dc9d458e524060763519d0a1e45fcfa1 to your computer and use it in GitHub Desktop.
Missing closing quote (Line 8) not caught, instead causes "=begin comment" to be ignored; also block can be not closed (line 9) and it won't be caught, either.
days-HMS( 61 );
sub days-HMS (Int $seconds )
{
my $minutes = $seconds div 60;
my $sec-left = $seconds mod 60;
say "$minutes $sec-left;
=begin comment
seconds ( 240_000 );
sub seconds ( $raw )
{
say $raw;
}
=end comment
@tbrowder
Copy link

tbrowder commented May 20, 2018

I expect the comment to be recognized and the missing closing-quote to be reported. The comment block should be invisible to code parsing (a separate pod slang should help).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment