Skip to content

Commit

Permalink
Process comments
Browse files Browse the repository at this point in the history
Syntax for comments
  • Loading branch information
benkasminbullock committed Jul 26, 2021
1 parent e771bb6 commit 082d45e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Lang/Go/Mod.pm
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ sub parse_go_mod {
if ( defined $m->{'require'}->{$1} );
$m->{'require'}->{$1} = $2;
}
elsif ( $line =~ m!^\s*//.*$! ) {

# comment

}
else {
croak "unknown line content: $line";
}
Expand Down

0 comments on commit 082d45e

Please sign in to comment.