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:
Martin Atkins 2017-06-05 07:04:26 -07:00
parent b5471b9715
commit 8fc5bd5141
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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