Added more tests

This commit is contained in:
Eduard Urbach 2024-06-28 23:13:55 +02:00
parent 445556b64d
commit 5f2ff5e74e
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
5 changed files with 73 additions and 30 deletions

View file

@ -114,7 +114,7 @@ func scanFile(path string, functions chan<- *Function) error {
break
}
if tokens[i].Kind == token.NewLine {
if tokens[i].Kind == token.NewLine || tokens[i].Kind == token.Comment {
i++
continue
}