Added more tests

This commit is contained in:
Eduard Urbach 2025-02-08 00:40:41 +01:00
parent 05688e9e79
commit c6ef9013a8
Signed by: eduard
GPG key ID: 49226B848C78F6C8
3 changed files with 57 additions and 5 deletions

View file

@ -26,9 +26,8 @@ func (s *Scanner) scanFile(path string, pkg string) error {
}
s.files <- file
i := 0
for i < len(tokens) {
for i := 0; i < len(tokens); i++ {
switch tokens[i].Kind {
case token.NewLine:
case token.Comment:
@ -49,8 +48,6 @@ func (s *Scanner) scanFile(path string, pkg string) error {
if err != nil {
return err
}
i++
}
return nil