aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
Commit message (Collapse)AuthorAgeFilesLines
* feat!: drop modules, general refactor and cleanupChristian Clason2025-05-121-114/+0
|
* 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
|
* chore!: remove ensure_installed='maintained'Christian Clason2022-04-301-46/+0
| | | | | | | | Removes all support (and tests) for the parser category "maintained", as this is no longer a useful category. BREAKING CHANGE: replace `ensure_installed='maintained'` by an explicit list of parsers, or use `'all'` (not recommended).
* feat: add "experimental" key to parsersCezary Drożak2021-10-071-0/+46
| | | | feat(ci): mark parsers as experimental in README
* test: Add tests for is_in_node_range (#1756)partizan2021-08-301-0/+41
* fix: is_in_node_range now includes end line and col This fixes no indents at the end of python files Refs #1136 * update scala highlights (#1760) * add type highlights * add call expression highlights * add function definition highlights * add expression highlights * add literals highlights * add operator highlights * add punctuation highlights * add comment highlights Co-authored-by: Stevan Milic <stevan.milic@tradecore.com> * test: Add unit tests * Revert "fix: is_in_node_range now includes end line and col" This reverts commit 5a721fef5620eb2fae6d9cebe09bf7b230f2606f. * refactor test * apply stylua * fix luacheck * update `describe` text * smallfix Co-authored-by: Stevan Milic <stevan.milic@yahoo.com> Co-authored-by: Stevan Milic <stevan.milic@tradecore.com>