Skip to content

Commit

Permalink
fix: linter issue in generated lexer code
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Sep 25, 2022
1 parent a083c4e commit e080216
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/participle/gen_lexer_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (lexer{{.Name}}DefinitionImpl) LexString(filename string, s string) (lexer.
Line: 1,
Column: 1,
},
states: []lexer{{.Name}}State{lexer{{.Name}}State{name: "Root"}},
states: []lexer{{.Name}}State{ {name: "Root"} },
}, nil
}
Expand Down
2 changes: 1 addition & 1 deletion lexer/internal/basiclexer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e080216

Please sign in to comment.