fix(treesitter playground): wrong range of a node displayed in playground

The call parameters order of the function `get_range_str` is flipped for the last two arguments compared to the declaration.
This commit is contained in:
William
2023-04-19 17:29:43 -07:00
committed by William Chen
parent e81331c2b0
commit 8613ba118c

View File

@@ -147,7 +147,7 @@ local decor_ns = api.nvim_create_namespace('ts.playground')
---@param end_lnum integer ---@param end_lnum integer
---@param end_col integer ---@param end_col integer
---@return string ---@return string
local function get_range_str(lnum, col, end_col, end_lnum) local function get_range_str(lnum, col, end_lnum, end_col)
if lnum == end_lnum then if lnum == end_lnum then
return string.format('[%d:%d - %d]', lnum + 1, col + 1, end_col) return string.format('[%d:%d - %d]', lnum + 1, col + 1, end_col)
end end