zclsyntax: run stringer after other generators
stringer is more sensitive to certain errors than other generators, so by running it last we give the other generators a chance to get things straight before we ask stringer to run.
This commit is contained in:
parent
b5471b9715
commit
8fc5bd5141
@ -4,3 +4,4 @@ package zclsyntax
|
||||
//go:generate ruby unicode2ragel.rb --url=http://www.unicode.org/Public/9.0.0/ucd/DerivedCoreProperties.txt -m UnicodeDerived -p ID_Start,ID_Continue -o unicode_derived.rl
|
||||
//go:generate ragel -Z scan_tokens.rl
|
||||
//go:generate gofmt -w scan_tokens.go
|
||||
//go:generate stringer -type TokenType -output token_type_string.go
|
||||
|
@ -21,8 +21,6 @@ type Tokens []Token
|
||||
// TokenType is an enumeration used for the Type field on Token.
|
||||
type TokenType rune
|
||||
|
||||
//go:generate stringer -type TokenType -output token_type_string.go
|
||||
|
||||
const (
|
||||
// Single-character tokens are represented by their own character, for
|
||||
// convenience in producing these within the scanner. However, the values
|
||||
|
Loading…
Reference in New Issue
Block a user