Allowed comments in the scanner
This commit is contained in:
parent
559df424d3
commit
1b63ac73cf
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue