Allowed comments in the scanner

This commit is contained in:
Eduard Urbach 2025-02-06 13:10:44 +01:00
parent f36b1f6c7c
commit ace2f3c4a5
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -31,6 +31,7 @@ func (s *Scanner) scanFile(path string, pkg string) error {
for i < len(tokens) { for i < len(tokens) {
switch tokens[i].Kind { switch tokens[i].Kind {
case token.NewLine: case token.NewLine:
case token.Comment:
case token.Import: case token.Import:
i, err = s.scanImport(file, tokens, i) i, err = s.scanImport(file, tokens, i)
case token.Struct: case token.Struct: