Hallucinate enum support

This commit is contained in:
2025-07-20 22:21:00 +02:00
parent a0ba2e01e3
commit ddd65f18b4
3 changed files with 225 additions and 3 deletions

9
enum.tmpl Normal file
View File

@@ -0,0 +1,9 @@
--luacheck: ignore 212 111
---@diagnostic disable: missing-return, lowercase-global
{{if ne .Comment ""}}-- {{.Comment}}{{end}}
---@enum {{.Name}}
{{.Name}} = {
{{- range $index, $value := .Values}}
{{$value}} = "{{$value}}",
{{- end}}
}