mirror of
https://github.com/neovim/neovim.git
synced 2026-03-31 04:42:03 +00:00
fix: silence LuaLS's no-unknown warnings in src/
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: no-unknown
|
||||
local mpack = vim.mpack
|
||||
|
||||
assert(#arg == 5)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: no-unknown
|
||||
if arg[1] == '--help' then
|
||||
print('Usage:')
|
||||
print(' ' .. arg[0] .. ' [-c] target source varname [source varname]...')
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: no-unknown
|
||||
local mpack = vim.mpack
|
||||
|
||||
local funcsfname = arg[1]
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: no-unknown
|
||||
local do_not_run = true
|
||||
if do_not_run then
|
||||
print([[
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: no-unknown
|
||||
local options_input_file = arg[5]
|
||||
|
||||
--- @module 'nvim.options'
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: no-unknown
|
||||
local mpack = vim.mpack
|
||||
|
||||
local syntax_file = arg[1]
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@diagnostic disable: no-unknown
|
||||
-- HASHY McHASHFACE
|
||||
|
||||
local M = {}
|
||||
|
||||
Reference in New Issue
Block a user