Allowed comments in the scanner

This commit is contained in:
Eduard Urbach 2025-02-06 13:10:44 +01:00
parent 559df424d3
commit 1b63ac73cf
Signed by: eduard
GPG key ID: 49226B848C78F6C8

View file

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