aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* properly replace deprecated tsutils functionsKiyoon Kim2023-02-122-4/+4
|
* deprecate get_node_range and is_in_node_rangeKiyoon Kim2023-02-121-40/+0
|
* simplify testsAlvaro Muñoz2023-01-313-13/+2
|
* update testsAlvaro Muñoz2023-01-312-1/+6
|
* fix testsAlvaro Muñoz2023-01-312-4/+1
|
* add ql indent testsAlvaro Muñoz2023-01-313-0/+36
|
* indents(c): update if casesPham Huy Hoang2023-01-141-0/+5
|
* indents(c): Refactor indent queriesPham Huy Hoang2023-01-145-3/+103
|
* Update indent-square-brackets.rbCameron2023-01-091-1/+1
|
* Create indent-square-brackets.rbCameron2023-01-091-0/+5
|
* allow negative assertion in injection tests (#4107)lucario3872023-01-075-135/+84
| | | | | | | * tests(vue, svelte): strengthen tests * fix(html, vue, svelte): fix wrong test format * allow negative assertions in injection tests
* 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
* Add tests correctly for ruby rescue/ensure indentationCameron2023-01-063-2/+2
|
* Create indent-ensure.rbCameron2023-01-061-0/+3
|
* Create indent-rescue.rbCameron2023-01-061-0/+3
|
* fix(jsx): add missing indent end mark to elementsPham Huy Hoang2023-01-044-0/+87
|
* fix(html): fix wrong indents for script/style tagsPham Huy Hoang2023-01-035-0/+66
|
* refactor(svelte): Remove duplicated queriesLucario3872023-01-031-0/+39
| | | | | | These injection queries are defined already in html_tags, remove them Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
* refactor(vue, html): Update injectionsLucario3872023-01-031-0/+45
| | | | | | | Update html_tags injections so that html/vue/svelte parsers can use it without having a script/style tag being captured twice Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
* highlights(rust): use `@namespace` for `[(crate) (self) (super)]`Stephan Seitz2023-01-011-15/+33
| | | | Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3992
* ci: allow negative assertions in testsStephan Seitz2023-01-011-0/+12
|
* move 'in' to repeatPedro Castro2022-12-311-1/+1
|
* fix testPedro Castro2022-12-311-1/+1
|
* r: update highlightsPedro Castro2022-12-311-0/+47
|
* feat(hcl,terraform): split terraform from hcl, add specialized queries for tfMichael Hoffmann2022-12-299-2/+2
| | | | | | | | This enables us to have different queries for terraform and general hcl. It solve the situation where other dialects of hcl (nomad, packer, etc) might use a terraform keyword and get highlighted out of place.
* Fix(vue): Invalid match queriesLucario3872022-12-251-7/+34
|
* add test fileLucario3872022-12-251-0/+41
|
* feat(t32): initial supportxasc2022-12-214-0/+177
|
* indents(ecma): Fix switch default indentRaymond Ha2022-12-071-0/+8
|
* highlights: create subscoping for ternary operatorStephan Seitz2022-12-021-2/+2
| | | | | | | | | | After https://github.com/nvim-treesitter/nvim-treesitter/issues/470, we decided to use `@conditional` for ternary operator instead of operator despite `@conditional` is documented for keywords only. A sub-scoping can make it easier for people to highlight this operator group differently. Also unify the usage of `@conditional...` across languages.
* test(highlights/cpp): add new test for auto as type.builtin.Aaron Rancsik2022-12-011-0/+1
|
* test(highlights/cpp): type -> type.builtin for primitive types.Aaron Rancsik2022-12-011-2/+2
|
* indents(r): support special operatorPedro Castro2022-11-292-0/+4
| | | | Close #3879
* highlights(hack): fix capturesObserverOfTime2022-11-262-5/+5
|
* highlights(solidity): use more specific groupsObserverOfTime2022-11-261-3/+3
|
* highlights(tiger): fix capturesObserverOfTime2022-11-263-4/+4
|
* highlights(gleam): use more specific groupsObserverOfTime2022-11-262-9/+9
|
* highlights(cpp): use more specific groupsObserverOfTime2022-11-261-1/+1
|
* highlights(gitattributes): fix capturesObserverOfTime2022-11-261-3/+3
|
* highlights(typescript): Fix as highlightRaymond Ha2022-11-251-0/+8
|
* highlights(ecma): add pair_pattern punctuation.delimiterMunif Tanjim2022-10-171-0/+7
|
* feat!: remove obsolete `TS*` highlight groupsChristian Clason2022-10-164-26/+24
|
* test(gitattributes): add tests for highlightsObserverOfTime2022-10-151-0/+37
|
* highlights(rust): distinguish between "for" in loops and impl_itemStephan Seitz2022-10-151-0/+15
| | | | Fixes #3641
* fix(php): add indent for enumsgbprod2022-10-102-0/+5
|
* Fix php indent for short array declarationgbprod2022-10-062-0/+6
|
* fix(test): update tests to Nvim 0.8Christian Clason2022-10-021-3/+3
|
* indents(wgsl): add indents.scmStephan Seitz2022-09-282-0/+62
|
* highlights(hack): use `@function.call`/`@method.call`Stephan Seitz2022-09-111-1/+1
|
* highlights(ecma): use `@method.call`/`function.call`Stephan Seitz2022-09-111-2/+2
|