aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove update_selection side-effects (#4114)coinator2023-01-071-1/+2
|
* 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-072-2/+42
| | | | | | | | | | | | | | | | | | | | | | | * 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
|
* Update indents for RubyCameron2023-01-061-0/+2
| | | Add `rescue` and `ensure` as a @branch captures for ruby
* folds(rust): add array_expressionChinmay Dalal2023-01-051-0/+1
|
* ci: properly fix lockfile actionObserverOfTime2023-01-041-1/+1
|
* fix: do not force syntax=ON on detachLewis Russell2023-01-041-9/+1
| | | | | syntax is now restored in vim.treesitter.stop() so we don't need to force it on here.
* highlights(markdown_inline): added ')' to linksJosef Litoš2023-01-041-2/+2
|
* fix(jsx): add missing indent end mark to elementsPham Huy Hoang2023-01-046-1/+98
|
* fix(html): fix wrong indents for script/style tagsPham Huy Hoang2023-01-036-2/+91
|
* refactor(svelte): Remove duplicated queriesLucario3872023-01-032-7/+43
| | | | | | 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-034-59/+122
| | | | | | | 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>
* Update parsers: scalaGitHub2023-01-031-1/+1
|
* ci: trim final `"]` when parsers get added in update-lockfile.ymlStephan Seitz2023-01-031-1/+1
| | | | | | | | | | | | | | | | | | See https://github.com/nvim-treesitter/nvim-treesitter/pull/4066 The diff will look different when a whole parser gets added: ``` @ ["gleam","revision"] - "cfcbca3f8f734773878e00d7bfcedea98eb10be2" + "3eb2e1783f3bf6f85c16cdd150e2f256b2f6844e" @ ["nix","revision"] - "6b71a810c0acd49b980c50fc79092561f7cee307" + "1b69cf1fa92366eefbe6863c184e5d2ece5f187d" @ ["wgsl_bevy"] + {"revision":"c81dc770310795caea5e00996505deba024ec698"} ``` Co-authored-by: ObserverOfTime <chronobserver@disroot.org>
* Update parsers: gitcommit, norg, vGitHub2023-01-031-3/+3
|
* Update parsers: v (#4077)github-actions[bot]2023-01-021-1/+1
| | | Co-authored-by: GitHub <noreply@github.com>
* Update parsers: help (#4075)github-actions[bot]2023-01-021-1/+1
| | | Co-authored-by: GitHub <noreply@github.com>
* highlights(elm): zero args constructor pattern matchingAnanda Umamil2023-01-011-0/+2
|
* highlights(haskell): Fix partially applied infix functionsManuel Barros2023-01-011-0/+2
|
* Update parsers: latex (#4072)github-actions[bot]2023-01-011-1/+1
| | | Co-authored-by: GitHub <noreply@github.com>
* Update parsers: latexGitHub2023-01-011-1/+1
|
* highlights(rust): use `@namespace` for `[(crate) (self) (super)]`Stephan Seitz2023-01-012-19/+37
| | | | Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3992
* ci: allow negative assertions in testsStephan Seitz2023-01-012-1/+13
|
* highlights(elm): improve highlightsAnanda Umamil2023-01-011-41/+143
|
* indents(c): treat `"#ifndef"`, `"#elif"` like `"#ifdef"`Stephan Seitz2022-12-311-0/+2
|
* Update parsers: wgsl_bevy"]GitHub2022-12-311-0/+3
|
* highlights(wgsl): highlight "->" for return types as `@punctuation.delimiter`Stephan Seitz2022-12-311-1/+1
|
* parsers: add wgsl_bevyStephan Seitz2022-12-314-0/+46
| | | | | This adds an extension of tree-sitter-wgsl that understands [Bevy's](https://bevyengine.org/) preprocessor directives.
* fix: show errors when reload after installation failsStephan Seitz2022-12-312-7/+10
|
* feat: also reload parsers after uninstallationStephan Seitz2022-12-311-11/+24
|
* highlights(cuda): add missing `"__global__"`Stephan Seitz2022-12-311-0/+1
|
* move 'in' to repeatPedro Castro2022-12-312-2/+2
|
* fix testPedro Castro2022-12-312-2/+2
|
* r: move inf to constant.builtinPedro Castro2022-12-311-1/+1
|
* r: update highlightsPedro Castro2022-12-312-9/+73
|
* docs: link to Matrix instead of ZulipStephan Seitz2022-12-311-2/+2
|
* Update parsers: qmljs (#4064)github-actions[bot]2022-12-311-1/+1
| | | Co-authored-by: GitHub <noreply@github.com>
* feat(hcl,terraform): split terraform from hcl, add specialized queries for tfMichael Hoffmann2022-12-2917-12/+47
| | | | | | | | 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.
* Update parsers: astro, ocaml, ocaml_interfaceGitHub2022-12-291-3/+3
|
* highlights(haskell): lambda and function with type signatureAnanda Umamil2022-12-291-3/+6
|
* Update parsers: tlaplusGitHub2022-12-271-1/+1
|
* ci: improve CI output on query errorStephan Seitz2022-12-271-2/+3
|
* Update slint indent queriesChristian Clason2022-12-272-11/+12
|
* Update slint highlight queries for rewriteJared Moulton2022-12-271-42/+50
|
* update lockfile (slint)Jared Moulton2022-12-271-1/+1
|
* julia: update parser and highlights (#4035)Sergio A. Vargas2022-12-272-17/+26
| | | | | | | | | | | | - Update patterns for type definitions: The grammar was updated to parse `abstract type` and `primitive type` as a single token. - Update @symbol capture to highlight quoted operators as symbols. - Add pattern to highlight adjoint operator. - Update patterns and captures for: - "keyword" operators (in, isa, where) - type operators (<:, >:) - Parametrized types.
* feat: allow hot-reloading parser after installationStephan Seitz2022-12-261-0/+1
|