mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 01:51:52 +00:00
fix(lua): not obvious which _meta/ files are generated #39035
Problem:
- Not obvious which _meta/ are generated and which should be edited
manually.
- The require guard (`error('Cannot require a meta file')`) is not
consistently present in all meta files.
Solution:
- Update headers.
- Add require() guard to all meta files.
- Rename generated meta files with `.gen.lua`.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
--- @meta _
|
||||
-- THIS FILE IS GENERATED
|
||||
-- DO NOT EDIT
|
||||
--
|
||||
-- DO NOT EDIT. GENERATED BY: src/gen/gen_eval_files.lua
|
||||
--
|
||||
error('Cannot require a meta file')
|
||||
|
||||
--- This file embeds vimdoc as the function descriptions
|
||||
@@ -1,6 +1,7 @@
|
||||
--- @meta _
|
||||
-- THIS FILE IS GENERATED
|
||||
-- DO NOT EDIT
|
||||
--
|
||||
-- DO NOT EDIT. GENERATED BY: src/gen/gen_eval_files.lua
|
||||
--
|
||||
error('Cannot require a meta file')
|
||||
|
||||
--- @class vim.api.keyset.buf_attach
|
||||
@@ -1,4 +1,5 @@
|
||||
--- @meta _
|
||||
-- This file is NOT generated, edit it directly. See also _meta/api_keysets.gen.lua.
|
||||
error('Cannot require a meta file')
|
||||
|
||||
--- Extra types we can't generate keysets for
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
--- @meta
|
||||
-- This file is NOT generated, edit it directly.
|
||||
error('Cannot require a meta file')
|
||||
|
||||
vim.base64 = {}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
---@meta
|
||||
-- This file is NOT generated, edit it directly.
|
||||
-- luacheck: no unused args
|
||||
|
||||
error('Cannot require a meta file')
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
--- @meta
|
||||
-- This file is NOT generated, edit it directly.
|
||||
error('Cannot require a meta file')
|
||||
|
||||
--- @class vim.fn.sign
|
||||
--- @field group string
|
||||
--- @field id integer
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
---@meta
|
||||
-- This file is NOT generated, edit it directly.
|
||||
error('Cannot require a meta file')
|
||||
|
||||
---@nodoc
|
||||
vim.json = {}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
--- @meta
|
||||
-- This file is NOT generated, edit it directly.
|
||||
error('Cannot require a meta file')
|
||||
|
||||
-- These types were taken from https://github.com/LuaCATS/lpeg
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
---@meta
|
||||
-- This file is NOT generated, edit it directly.
|
||||
error('Cannot require a meta file')
|
||||
|
||||
-- luacheck: no unused args
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
--- @meta
|
||||
-- This file is NOT generated, edit it directly.
|
||||
error('Cannot require a meta file')
|
||||
|
||||
-- luacheck: no unused args
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
--- @meta _
|
||||
-- THIS FILE IS GENERATED
|
||||
-- DO NOT EDIT
|
||||
--
|
||||
-- DO NOT EDIT. GENERATED BY: src/gen/gen_eval_files.lua
|
||||
--
|
||||
error('Cannot require a meta file')
|
||||
|
||||
---@class vim.bo
|
||||
@@ -1,4 +1,5 @@
|
||||
--- @meta
|
||||
-- This file is NOT generated, edit it directly.
|
||||
error('Cannot require a meta file')
|
||||
|
||||
-- Documentations and Lua types for vim.re (vendored re.lua, lpeg-1.1.0)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
--- @meta
|
||||
-- This file is NOT generated, edit it directly.
|
||||
error('Cannot require a meta file')
|
||||
|
||||
-- luacheck: no unused args
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
--- @meta
|
||||
-- This file is NOT generated, edit it directly.
|
||||
error('Cannot require a meta file')
|
||||
|
||||
-- luacheck: no unused args
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
--- @meta _
|
||||
-- THIS FILE IS GENERATED
|
||||
-- DO NOT EDIT
|
||||
--
|
||||
-- DO NOT EDIT. GENERATED BY: src/gen/gen_eval_files.lua
|
||||
--
|
||||
error('Cannot require a meta file')
|
||||
|
||||
--- Return the absolute value of {expr}. When {expr} evaluates to
|
||||
@@ -1,6 +1,7 @@
|
||||
--- @meta _
|
||||
-- THIS FILE IS GENERATED
|
||||
-- DO NOT EDIT
|
||||
--
|
||||
-- DO NOT EDIT. GENERATED BY: src/gen/gen_eval_files.lua
|
||||
--
|
||||
error('Cannot require a meta file')
|
||||
|
||||
--- @class vim.v
|
||||
@@ -1,4 +1,5 @@
|
||||
--- @meta _
|
||||
-- This file is NOT generated, edit it directly. See also _meta/vvars.gen.lua.
|
||||
error('Cannot require a meta file')
|
||||
|
||||
--- Extra types for vim.v dictionary fields
|
||||
|
||||
Reference in New Issue
Block a user