From 082d45ed72a28220b8f961c8d27fd6fac60c4002 Mon Sep 17 00:00:00 2001 From: Ben Bullock Date: Tue, 27 Jul 2021 07:32:39 +0900 Subject: [PATCH] Process comments Syntax for comments --- lib/Lang/Go/Mod.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Lang/Go/Mod.pm b/lib/Lang/Go/Mod.pm index d23ba2b..8f40a5d 100644 --- a/lib/Lang/Go/Mod.pm +++ b/lib/Lang/Go/Mod.pm @@ -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"; } -- 2.38.5