Skip to content

Commit a9804be

Browse files
committed
Add comments
1 parent 50a9b60 commit a9804be

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lua/nvim-treesitter-textobjects/shared.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ end
214214
---@param range Range4
215215
---@param row integer
216216
---@param col integer
217-
---@param end_col_offset integer?
217+
---@param end_col_offset integer? nil (implies 0) or -1 - see tests/select/python/selection_mode.py
218218
---@return boolean
219219
local function is_in_range(range, row, col, end_col_offset)
220220
local start_row, start_col, end_row, end_col = unpack(range) ---@type integer, integer, integer, integer

tests/select/python/selection_mode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ def __init__(self, *arg):
77

88
self.my_list = my_list
99

10+
# see https://github.com/nvim-treesitter/nvim-treesitter-textobjects/issues/700
1011
print(1, type('1'), ['1'])
1112
print(['1', '2'], 3)
1213
print(['1', '2'])

0 commit comments

Comments
 (0)