mirror of
https://github.com/neovim/neovim.git
synced 2026-09-12 09:01:02 +00:00
build: enable more EmmyLua checks
- call-non-callable - missing-fields - redefined-label - redefined-local - undefined-field - unreachable-code Promote redefined-local and unreachable-code to warnings. Fix DOS line-ending handling for multiline semantic tokens, and support intersection types in the help parser. AI-assisted
This commit is contained in:
committed by
Lewis Russell
parent
ec65796cea
commit
6a54396db4
@@ -53,6 +53,8 @@
|
||||
--- 1.2 - 2.3.0 is 1.2.0 - 2.3.0
|
||||
--- ```
|
||||
|
||||
---@class (internal) vim.VersionModule
|
||||
---@operator call: vim.Version
|
||||
local M = {}
|
||||
|
||||
---@nodoc
|
||||
@@ -101,6 +103,7 @@ local function cmp_prerel(prerel1, prerel2)
|
||||
end
|
||||
end
|
||||
|
||||
---@param key string|integer
|
||||
function Version:__index(key)
|
||||
return type(key) == 'number' and ({ self.major, self.minor, self.patch })[key] or Version[key]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user