From 4e29b35c997f191135311d5eadc36102c5aef916 Mon Sep 17 00:00:00 2001 From: Estebanfer Date: Sun, 8 Oct 2023 16:49:26 -0300 Subject: [PATCH] fix spel2.lua function overloads by adding ---@meta --- docs/game_data/spel2.lua | 4 +++- docs/generate_emmylua.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/game_data/spel2.lua b/docs/game_data/spel2.lua index 5d2c5596a..6f9845d89 100644 --- a/docs/game_data/spel2.lua +++ b/docs/game_data/spel2.lua @@ -1,4 +1,6 @@ ----@diagnostic disable: unused-function,lowercase-global,missing-return,duplicate-doc-alias,duplicate-set-field +---@meta +---@diagnostic disable: duplicate-doc-alias + ---@class Meta ---@field name string ---@field version string diff --git a/docs/generate_emmylua.py b/docs/generate_emmylua.py index 69a141de3..591aab2b4 100644 --- a/docs/generate_emmylua.py +++ b/docs/generate_emmylua.py @@ -183,7 +183,9 @@ def main(): gu.setup_stdout("game_data/spel2.lua") print( - """---@diagnostic disable: unused-function,lowercase-global,missing-return,duplicate-doc-alias,duplicate-set-field + """---@meta +---@diagnostic disable: duplicate-doc-alias + ---@class Meta ---@field name string ---@field version string