diff --git a/src/clint.lua b/src/clint.lua index 0f8a4e9f82..1931180798 100755 --- a/src/clint.lua +++ b/src/clint.lua @@ -1,4 +1,5 @@ #!/usr/bin/env nvim -l +---@diagnostic disable: no-unknown -- Lints C files in the Neovim source tree. -- Based on Google "cpplint", modified for Neovim. diff --git a/src/gen/gen_api_dispatch.lua b/src/gen/gen_api_dispatch.lua index 0b33f2ce9a..fd40d662bb 100644 --- a/src/gen/gen_api_dispatch.lua +++ b/src/gen/gen_api_dispatch.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: no-unknown -- Generates C code to bridge API <=> Lua. -- to obtain how the script is invoked, look in build/build.ninja and grep for diff --git a/src/gen/gen_api_ui_events.lua b/src/gen/gen_api_ui_events.lua index 3837f52fb4..e5bbe8c3b3 100644 --- a/src/gen/gen_api_ui_events.lua +++ b/src/gen/gen_api_ui_events.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: no-unknown local mpack = vim.mpack assert(#arg == 5) diff --git a/src/gen/gen_char_blob.lua b/src/gen/gen_char_blob.lua index c40e0d6e82..285c9e06ac 100644 --- a/src/gen/gen_char_blob.lua +++ b/src/gen/gen_char_blob.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: no-unknown if arg[1] == '--help' then print('Usage:') print(' ' .. arg[0] .. ' [-c] target source varname [source varname]...') diff --git a/src/gen/gen_eval.lua b/src/gen/gen_eval.lua index 62bcde6c64..97887ce676 100644 --- a/src/gen/gen_eval.lua +++ b/src/gen/gen_eval.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: no-unknown local mpack = vim.mpack local funcsfname = arg[1] diff --git a/src/gen/gen_ex_cmds.lua b/src/gen/gen_ex_cmds.lua index 71c4f40115..becb269e4b 100644 --- a/src/gen/gen_ex_cmds.lua +++ b/src/gen/gen_ex_cmds.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: no-unknown -- Will generate files ex_cmds_enum.generated.h with cmdidx_T enum -- and ex_cmds_defs.generated.h with main Ex commands definitions. diff --git a/src/gen/gen_filetype.lua b/src/gen/gen_filetype.lua index 18b53f1ea4..55bed70e6c 100644 --- a/src/gen/gen_filetype.lua +++ b/src/gen/gen_filetype.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: no-unknown local do_not_run = true if do_not_run then print([[ diff --git a/src/gen/gen_helptags.lua b/src/gen/gen_helptags.lua index 688e3061f1..41fb77e128 100644 --- a/src/gen/gen_helptags.lua +++ b/src/gen/gen_helptags.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: no-unknown -- Does the same as `nvim -c "helptags ++t doc" -c quit` -- without needing to run a "nvim" binary, which is needed for cross-compiling. local out = arg[1] diff --git a/src/gen/gen_options.lua b/src/gen/gen_options.lua index 9c88f96ae2..97be567d60 100644 --- a/src/gen/gen_options.lua +++ b/src/gen/gen_options.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: no-unknown local options_input_file = arg[5] --- @module 'nvim.options' diff --git a/src/gen/gen_vimvim.lua b/src/gen/gen_vimvim.lua index f2d3e18e72..b2c9a08221 100644 --- a/src/gen/gen_vimvim.lua +++ b/src/gen/gen_vimvim.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: no-unknown local mpack = vim.mpack local syntax_file = arg[1] diff --git a/src/gen/hashy.lua b/src/gen/hashy.lua index cd0e90830d..382ba480b0 100644 --- a/src/gen/hashy.lua +++ b/src/gen/hashy.lua @@ -1,3 +1,4 @@ +---@diagnostic disable: no-unknown -- HASHY McHASHFACE local M = {}