mirror of
https://github.com/neovim/neovim.git
synced 2026-05-24 05:40:08 +00:00
build(docs): lint more quasi-keysets #39654
Problem: Linter missed backtick and double-quote keynames in the quasi-keyset of the `nvim_create_user_command` docstring. Solution: Update the linter to check backtick-surrounded and quote-surrounded key names.
This commit is contained in:
@@ -660,8 +660,8 @@ end
|
||||
---
|
||||
---@param behavior 'error'|'keep'|'force'|fun(key:any, prev_value:any?, value:any): any Decides what to do if a key is found in more than one map:
|
||||
--- - "error": raise an error
|
||||
--- - "keep": use value from the leftmost map
|
||||
--- - "force": use value from the rightmost map
|
||||
--- - "keep": use value from the leftmost map
|
||||
--- - If a function, it receives the current key, the previous value in the currently merged table (if present), the current value and should
|
||||
--- return the value for the given key in the merged table.
|
||||
---@param ... table Two or more tables
|
||||
@@ -693,8 +693,8 @@ end
|
||||
---@generic T2: table
|
||||
---@param behavior 'error'|'keep'|'force'|fun(key:any, prev_value:any?, value:any): any Decides what to do if a key is found in more than one map:
|
||||
--- - "error": raise an error
|
||||
--- - "keep": use value from the leftmost map
|
||||
--- - "force": use value from the rightmost map
|
||||
--- - "keep": use value from the leftmost map
|
||||
--- - If a function, it receives the current key, the previous value in the currently merged table (if present), the current value and should
|
||||
--- return the value for the given key in the merged table.
|
||||
---@param ... T2 Two or more tables
|
||||
|
||||
Reference in New Issue
Block a user