aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/ts_utils_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* tests: fix deprecated tests (#4681)Pham Huy Hoang2023-04-201-2/+8
|
* deprecate get_node_range and is_in_node_rangeKiyoon Kim2023-02-121-40/+0
|
* fix(utils): swap_nodes calculates correct char_delta (#4110)Michael Lan2023-01-071-0/+40
| | | | | | | | | | | | | | | | | | | | | | | * fix(utils): swap_nodes calculates correct char_delta The char_delta is not calculated correctly right now when there are two treesitter nodes being swapped, one directly following the other. This is rare but can happen for example when attempting to swap "print" and "(1)" in "print(1)". In this case an incorrect char_delta is calculated because of a bug in range comparison. * test(swap_nodes): check cursor * add a regression test (for multiline node swap) * add a test with adjacent swaps that fails when char_delta is not calculated correctly * test(swap_nodes): check text content after swap * test: note language for parser * fix tests * use same not equal for table comparison
* feat(ts_utils): allow starting selection after last character (#3233)Axel Dahlberg2022-07-291-0/+67
|