| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | test(dart): Add an expected failure test | Robert Brunhage | 2023-04-13 | 2 | -0/+16 | |
| | | ||||||
| * | Revert "fix(dart): function argument indents is inconsistent" | Robert Brunhage | 2023-04-13 | 2 | -15/+0 | |
| | | | | | This reverts commit ac4020c70722337c326bf65b645b162ee6e1796b. | |||||
| * | fix(dart): function argument indents is inconsistent | Robert Brunhage | 2023-04-11 | 2 | -0/+15 | |
| | | ||||||
| * | fix(dart): try statement wouldn't indent (#4623) | Robert Brunhage | 2023-04-10 | 2 | -0/+6 | |
| | | ||||||
| * | fix(c_indents): fix expression leaking indents | Pham Huy Hoang | 2023-04-08 | 2 | -0/+39 | |
| | | ||||||
| * | add test | Pham Huy Hoang | 2023-04-08 | 3 | -0/+35 | |
| | | ||||||
| * | feat(python): add break/continue dedent | Pham Huy Hoang | 2023-03-25 | 2 | -0/+11 | |
| | | ||||||
| * | feat(python): add match-case indents | Pham Huy Hoang | 2023-03-25 | 2 | -0/+19 | |
| | | ||||||
| * | refactor(indent)!: Rework indent, aligned indent | George Harker | 2023-03-24 | 11 | -5/+89 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | indents now use @indent.X style captures, and indent.PROP for properties to set on those captures, as documented in the help. Captures are: indent.auto indent.begin indent.end indent.dedent indent.branch indent.ignore indent.align indent.zero Properties are: indent.immediate indent.start_at_same_line indent.open_delimiter indent.close_delimiter indent.increment indent.avoid_last_matching_next Multiple opening delims on one line and multiple closing on a line are collapsed so as not to over indent, The final line of @indent.align blocks which must in some cases be treated specially to avoid clashing with the next line is treated the same regardless of whether the @indent.align capture actually uses aligned indentation or just normal indentation. The indent.avoid_last_matching_next property controls this. Adjust python to use these. List, set, dict and tuple all use @indent.align which permits both hanging and aligned styles. Finally, try: on it’s own will indent when typing live but make no guaranteeds about whole-file formatting. Includes lucario387:fix-align-indent | |||||
| * | feat(vue): add tsx/jsx injection queries (#4550) | Lucario387 | 2023-03-24 | 1 | -0/+4 | |
| | | | | | | | | * feat(vue): add tsx/jsx injection queries - add a test - style: format vue/injections.scm | |||||
| * | test: ecma injections | Benny Powers | 2023-03-22 | 2 | -9/+9 | |
| | | ||||||
| * | test: html injections | Benny Powers | 2023-03-22 | 1 | -5/+38 | |
| | | ||||||
| * | feat(python): add "return" patterns to @indent_end | Pham Huy Hoang | 2023-03-16 | 2 | -0/+20 | |
| | | | | | | | `return ...` is usually the last line of a function/statement, so mark some possible patterns of `return` with `@indent_end` to dedent the line after it | |||||
| * | fix(python): add missing @indent_end | Pham Huy Hoang | 2023-03-16 | 2 | -0/+79 | |
| | | ||||||
| * | fix: change folding algorithm to fix Python indents | George Harker | 2023-03-15 | 2 | -2/+23 | |
| | | ||||||
| * | feat(julia): add tests for new changes | Amaan Qureshi | 2023-03-10 | 1 | -0/+26 | |
| | | ||||||
| * | fix(gleam): update tests reflecting recent changes | Amaan Qureshi | 2023-03-10 | 6 | -102/+103 | |
| | | ||||||
| * | fix: Java indent for multiple line arguments (#4449) | Daniel Woznicki | 2023-03-06 | 3 | -0/+14 | |
| | | | | | | | | | | * fix Java indent for multiple line arguments, fixes #4448, add an additional test for methods with arguments on multiple lines * Satisfy StyLua check --------- Co-authored-by: Daniel Woznicki <danwoz@nettoolkit.com> | |||||
| * | indents(vue): fix indents on new line after <template> | Pham Huy Hoang | 2023-03-06 | 2 | -0/+27 | |
| | | ||||||
| * | injections(html): fix faulty css/js injections | Pham Huy Hoang | 2023-03-05 | 2 | -0/+10 | |
| | | | | | | | Group queries to reduce duplicate injection tree use only regex | |||||
| * | feat(ecma): add tests for constants | Amaan Qureshi | 2023-03-04 | 1 | -0/+13 | |
| | | ||||||
| * | fix(go): Indent on type switch case properly | Evan Phoenix | 2023-03-03 | 1 | -0/+6 | |
| | | ||||||
| * | Fix broken YANG indent tests | Tomas Sandven | 2023-02-24 | 1 | -4/+4 | |
| | | ||||||
| * | Add YANG indentation tests | Tomas Sandven | 2023-02-24 | 2 | -0/+81 | |
| | | ||||||
| * | fix(dart): add `@indent_end` to } (#4167) | SzeLamC | 2023-02-24 | 2 | -0/+24 | |
| | | | | | | * fix dart indentation after } * add some simple test case | |||||
| * | feat(solidity): use maintained parser and update highlights accordingly | Amaan Qureshi | 2023-02-24 | 1 | -4/+4 | |
| | | ||||||
| * | fix(go): apply indents in a communication case in a select statement | Amaan Qureshi | 2023-02-24 | 1 | -0/+16 | |
| | | ||||||
| * | docs: fix typos | dundargoc | 2023-02-23 | 1 | -1/+1 | |
| | | ||||||
| * | properly replace deprecated tsutils functions | Kiyoon Kim | 2023-02-12 | 2 | -4/+4 | |
| | | ||||||
| * | deprecate get_node_range and is_in_node_range | Kiyoon Kim | 2023-02-12 | 1 | -40/+0 | |
| | | ||||||
| * | simplify tests | Alvaro Muñoz | 2023-01-31 | 3 | -13/+2 | |
| | | ||||||
| * | update tests | Alvaro Muñoz | 2023-01-31 | 2 | -1/+6 | |
| | | ||||||
| * | fix tests | Alvaro Muñoz | 2023-01-31 | 2 | -4/+1 | |
| | | ||||||
| * | add ql indent tests | Alvaro Muñoz | 2023-01-31 | 3 | -0/+36 | |
| | | ||||||
| * | indents(c): update if cases | Pham Huy Hoang | 2023-01-14 | 1 | -0/+5 | |
| | | ||||||
| * | indents(c): Refactor indent queries | Pham Huy Hoang | 2023-01-14 | 5 | -3/+103 | |
| | | ||||||
| * | Update indent-square-brackets.rb | Cameron | 2023-01-09 | 1 | -1/+1 | |
| | | ||||||
| * | Create indent-square-brackets.rb | Cameron | 2023-01-09 | 1 | -0/+5 | |
| | | ||||||
| * | allow negative assertion in injection tests (#4107) | lucario387 | 2023-01-07 | 5 | -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 Lan | 2023-01-07 | 1 | -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 indentation | Cameron | 2023-01-06 | 3 | -2/+2 | |
| | | ||||||
| * | Create indent-ensure.rb | Cameron | 2023-01-06 | 1 | -0/+3 | |
| | | ||||||
| * | Create indent-rescue.rb | Cameron | 2023-01-06 | 1 | -0/+3 | |
| | | ||||||
| * | fix(jsx): add missing indent end mark to elements | Pham Huy Hoang | 2023-01-04 | 4 | -0/+87 | |
| | | ||||||
| * | fix(html): fix wrong indents for script/style tags | Pham Huy Hoang | 2023-01-03 | 5 | -0/+66 | |
| | | ||||||
| * | refactor(svelte): Remove duplicated queries | Lucario387 | 2023-01-03 | 1 | -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 injections | Lucario387 | 2023-01-03 | 1 | -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 Seitz | 2023-01-01 | 1 | -15/+33 | |
| | | | | | Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3992 | |||||
| * | ci: allow negative assertions in tests | Stephan Seitz | 2023-01-01 | 1 | -0/+12 | |
| | | ||||||
| * | move 'in' to repeat | Pedro Castro | 2022-12-31 | 1 | -1/+1 | |
| | | ||||||
