| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| | |
|
| |
|
|
|
|
|
|
| |
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(ci): mark parsers as experimental in README
|
|
|
* 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>
|