Skip to content

Commit

Permalink
Update text.go
Browse files Browse the repository at this point in the history
  • Loading branch information
hible committed Jul 20, 2022
1 parent b121aa2 commit 1ee28a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v3/gen/luasrc/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ return {
end
{{end}}
{{range $sn, $objName := $.Types.EnumNames}}
---@enum {{.PackageName}}.{{$objName}}
---@enum {{$.PackageName}}.{{$objName}}
g.{{$objName}} =
{ {{range $fi,$field := $.Types.AllFieldByName $objName}}
{{$field.FieldName}} = {{$field.Value}}, -- {{$field.Name}} {{end}} {{range $fi,$field := $.Types.AllFieldByName $objName}}
Expand Down Expand Up @@ -54,7 +54,7 @@ const templateText_luatype = `-- Generated by github.com/davyxu/tabtoy
return {
init = function( g )
{{range $sn, $objName := $.Types.EnumNames}}
---@enum {{.PackageName}}.{{$objName}}
---@enum {{$.PackageName}}.{{$objName}}
g.{{$objName}} =
{ {{range $fi,$field := $.Types.AllFieldByName $objName}}
{{$field.FieldName}} = {{$field.Value}}, -- {{$field.Name}} {{end}} {{range $fi,$field := $.Types.AllFieldByName $objName}}
Expand Down

0 comments on commit 1ee28a2

Please sign in to comment.