From b351024daf88d8ea3b934817ba7350fb29bbf37c Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Thu, 7 May 2026 12:00:26 -0400 Subject: 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. --- runtime/lua/vim/_core/shared.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim/_core') diff --git a/runtime/lua/vim/_core/shared.lua b/runtime/lua/vim/_core/shared.lua index 77cfac2d9d..a67e8513a1 100644 --- a/runtime/lua/vim/_core/shared.lua +++ b/runtime/lua/vim/_core/shared.lua @@ -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 -- cgit