aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent
Commit message (Collapse)AuthorAgeFilesLines
* feat: add indents.scm for nickel (#4790)Zheng PiaoDan2023-05-132-0/+33
|
* feat: add swift indents (#4756)Pham Huy Hoang2023-05-084-0/+123
|
* Update Capnp (#4713)Amaan Qureshi2023-05-072-0/+1087
| | | | | | | | | | | | | * feat(capnp): update queries from upstream changes * test: add tests for capnp * fix indent queries * ci: fix capnp indent tests --------- Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
* ci: add tests for #4632Stephan Seitz2023-05-052-0/+11
| | | | | Issue #4632 might be fixed by https://github.com/UserNobody14/tree-sitter-dart/pull/41
* Add Python else elif dedent (#4618)Pham Huy Hoang2023-04-292-0/+5
| | | | | | | * feat(python): add interactive else/elif dedent * fixup * add test
* chore(smali): add testsAmaan Qureshi2023-04-255-0/+158
|
* fix(dart_indent): Fix dart case/default indentPham Huy Hoang2023-04-142-2/+39
| | | | | | | | | | add tests add tests for fallthrough case add more tests keep functional tests
* chore(dart): remove tests for switchRobert Brunhage2023-04-132-12/+0
|
* test(dart): add test cases for open issuesRobert Brunhage2023-04-134-2/+36
|
* fix(dart): review commentRobert Brunhage2023-04-131-1/+1
|
* test(dart): add expected failure file to testRobert Brunhage2023-04-131-1/+3
|
* chore: fix formatting issue for dart testRobert Brunhage2023-04-131-1/+6
|
* Update tests/indent/dart_spec.luaRobert Brunhage2023-04-131-1/+1
| | | Co-authored-by: Pham Huy Hoang <hoangtun0810@gmail.com>
* test(dart): Add an expected failure testRobert Brunhage2023-04-132-0/+16
|
* Revert "fix(dart): function argument indents is inconsistent"Robert Brunhage2023-04-132-15/+0
| | | | This reverts commit ac4020c70722337c326bf65b645b162ee6e1796b.
* fix(dart): function argument indents is inconsistentRobert Brunhage2023-04-112-0/+15
|
* fix(dart): try statement wouldn't indent (#4623)Robert Brunhage2023-04-102-0/+6
|
* fix(c_indents): fix expression leaking indentsPham Huy Hoang2023-04-082-0/+39
|
* add testPham Huy Hoang2023-04-083-0/+35
|
* feat(python): add break/continue dedentPham Huy Hoang2023-03-252-0/+11
|
* feat(python): add match-case indentsPham Huy Hoang2023-03-252-0/+19
|
* refactor(indent)!: Rework indent, aligned indentGeorge Harker2023-03-2411-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(python): add "return" patterns to @indent_endPham Huy Hoang2023-03-162-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_endPham Huy Hoang2023-03-162-0/+79
|
* fix: change folding algorithm to fix Python indentsGeorge Harker2023-03-152-2/+23
|
* fix: Java indent for multiple line arguments (#4449)Daniel Woznicki2023-03-063-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 Hoang2023-03-062-0/+27
|
* fix(go): Indent on type switch case properlyEvan Phoenix2023-03-031-0/+6
|
* Fix broken YANG indent testsTomas Sandven2023-02-241-4/+4
|
* Add YANG indentation testsTomas Sandven2023-02-242-0/+81
|
* fix(dart): add `@indent_end` to } (#4167)SzeLamC2023-02-242-0/+24
| | | | | * fix dart indentation after } * add some simple test case
* fix(go): apply indents in a communication case in a select statementAmaan Qureshi2023-02-241-0/+16
|
* docs: fix typosdundargoc2023-02-231-1/+1
|
* 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
|
* 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
|
* 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.
* indents(ecma): Fix switch default indentRaymond Ha2022-12-071-0/+8
|
* indents(r): support special operatorPedro Castro2022-11-292-0/+4
| | | | Close #3879
* fix(php): add indent for enumsgbprod2022-10-102-0/+5
|