File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565--- @param key string
6666--- @param value string
6767function Context :set_global (key , value )
68- vim .validate (" key" , key , " string" )
69- vim .validate (" value" , value , " string" )
68+ vim .validate ({
69+ key = { key , " string" },
70+ value = { value , " string" },
71+ })
7072 self .vars [key ] = value
7173end
7274
7375--- @param key string
7476--- @param value string
7577function Context :set_local (key , value )
76- vim .validate (" key" , key , " string" )
77- vim .validate (" value" , value , " string" )
78+ vim .validate ({
79+ key = { key , " string" },
80+ value = { value , " string" },
81+ })
7882 self .lv [key ] = value
7983end
8084
Original file line number Diff line number Diff line change 186186--- @param ctx rest.Context
187187--- @param endline number zero-based line number
188188function parser .eval_context (source , ctx , endline )
189- vim .validate (" source" , source , " number" )
189+ vim .validate ({ source = { source , " number" } } )
190190 local startline = ctx .linenr
191191 for ln = startline , endline do
192192 local start_node = vim .treesitter .get_node ({ pos = { ln , 0 } })
You can’t perform that action at this time.
0 commit comments