Allowed comments in the scanner
This commit is contained in:
parent
f36b1f6c7c
commit
ace2f3c4a5
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) {
|
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…
Add table
Add a link
Reference in a new issue