Allowed comments in the scanner
This commit is contained in:
parent
f36b1f6c7c
commit
ace2f3c4a5
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user