mirror of
https://github.com/neovim/neovim.git
synced 2026-09-13 17:41:10 +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
@@ -31,7 +31,7 @@ local history = {
|
||||
--- @field ltree vim.treesitter.LanguageTree
|
||||
--- @field region Range4
|
||||
|
||||
local M = {}
|
||||
local M = { TEST_SWITCH_PRIORITY = false }
|
||||
|
||||
--- @param node vim.treesitter.select.node
|
||||
--- @return string
|
||||
@@ -96,10 +96,8 @@ end
|
||||
--- @param ltree vim.treesitter.LanguageTree
|
||||
--- @return vim.treesitter.select.node.top
|
||||
local function create_top_node(tree, region, ltree)
|
||||
--- @type vim.treesitter.select.node.top
|
||||
local self = {
|
||||
node = tree:root(),
|
||||
top = {} --[[@as any]],
|
||||
ltree = ltree,
|
||||
region = region,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user