Commit graph

121 commits

Author SHA1 Message Date
Daniel Woznicki
7947a2ccf1
fix: Java indent for multiple line arguments (#4449)
* 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>
2023-03-06 18:10:31 -05:00
Pham Huy Hoang
5ac39d10cc indents(vue): fix indents on new line after <template> 2023-03-06 02:32:45 -05:00
Evan Phoenix
28f84d69e3 fix(go): Indent on type switch case properly 2023-03-03 23:36:51 -05:00
Tomas Sandven
061ee1b98f Fix broken YANG indent tests 2023-02-24 16:39:33 -05:00
Tomas Sandven
06e8a91ce2 Add YANG indentation tests 2023-02-24 16:39:33 -05:00
SzeLamC
68ab44277c
fix(dart): add @indent_end to } (#4167)
* fix dart indentation after }

* add some simple test case
2023-02-24 16:06:31 -05:00
Amaan Qureshi
a3213e3dd7 fix(go): apply indents in a communication case in a select statement 2023-02-24 01:37:58 -08:00
dundargoc
4612212c72 docs: fix typos 2023-02-23 11:39:43 -08:00
Alvaro Muñoz
f6531e27fd simplify tests 2023-01-31 12:23:13 +01:00
Alvaro Muñoz
d335c39bff update tests 2023-01-31 12:23:13 +01:00
Alvaro Muñoz
c433b3c232 fix tests 2023-01-31 12:23:13 +01:00
Alvaro Muñoz
9d6d348418 add ql indent tests 2023-01-31 12:23:13 +01:00
Pham Huy Hoang
f669924df2 indents(c): update if cases 2023-01-14 04:52:21 -08:00
Pham Huy Hoang
2f5deed456 indents(c): Refactor indent queries 2023-01-14 04:52:21 -08:00
Cameron
5fb315df12 Update indent-square-brackets.rb 2023-01-09 22:17:50 +01:00
Cameron
bb24f483ca Create indent-square-brackets.rb 2023-01-09 22:17:50 +01:00
Cameron
2d8e6b6662 Add tests correctly for ruby rescue/ensure indentation 2023-01-06 19:48:42 +01:00
Cameron
14bdbef468 Create indent-ensure.rb 2023-01-06 19:48:42 +01:00
Cameron
7eb76dc290 Create indent-rescue.rb 2023-01-06 19:48:42 +01:00
Pham Huy Hoang
2cd89b4bc3 fix(jsx): add missing indent end mark to elements 2023-01-04 12:14:03 +01:00
Pham Huy Hoang
8c71c6c5ed fix(html): fix wrong indents for script/style tags 2023-01-03 17:50:44 +01:00
Michael Hoffmann
ee3e9f4dc0 feat(hcl,terraform): split terraform from hcl, add specialized queries for tf
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.
2022-12-29 22:18:41 +01:00
Raymond Ha
6c4772f7b6 indents(ecma): Fix switch default indent 2022-12-07 18:05:33 +01:00
Pedro Castro
161576dde2 indents(r): support special operator
Close #3879
2022-11-29 19:23:09 +01:00
gbprod
3096e637c8 fix(php): add indent for enums 2022-10-10 23:01:22 +02:00
gbprod
84e23bd979 Fix php indent for short array declaration 2022-10-06 08:55:11 -04:00
Stephan Seitz
27cba73df9 indents(wgsl): add indents.scm 2022-09-28 19:25:07 -04:00
Stephan Seitz
c30f73aaa4 ci: add test for #3382 (wrong JS array indent) 2022-09-10 12:59:21 -07:00
Stephan Seitz
e60cdd0278 ci(indents): add known failure case for #3364 2022-08-30 08:02:42 +02:00
Stephan Seitz
d1ce3db8ea indents(go): no indent at all composite_literal, indent at struct_type 2022-08-15 13:34:16 -07:00
Stephan Seitz
ac5456567a indens(go): fix issue 3288
Fixes #3288
2022-08-15 13:34:16 -07:00
Zheng Piaodan
48d88ddbff fix(ruby): indent of brackets & parens 2022-08-13 03:40:17 -07:00
Zheng Piaodan
65a1817ba3 fix(ruby): indent parenthesized_statements 2022-08-13 03:40:17 -07:00
phynalle
d2815cb82f Enable expandtab 2022-08-08 14:07:30 -07:00
phynalle
5c7f9d2ddb Add zig tests for newline 2022-08-08 14:07:30 -07:00
Stephan Seitz
27424a2040 indents(go): improve @branch rules
- Don't branch at `case`
- Let `import_spec_list`/`var_declaration` behave like
  `const_declaration`

Fixes #2166
2022-08-05 12:32:20 -07:00
Kiyan
783c74cefc
chore: remove executable permissions on graphql spec file (#3206) 2022-07-22 10:14:48 +02:00
Kiyan
d7f06bfb13
fix(indents): indents for error block (css, lua) (#3207) 2022-07-21 13:48:03 +02:00
Eric Zheng (PiaoDan)
9587db3d07
fix: add more indentations for ruby (#3139) 2022-07-09 10:58:25 +02:00
kiyan
8bc4d046e7 fix(rust): remove if_let from indent captures
fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3073
2022-07-08 00:27:51 +02:00
kiyan
6eb35103d0 fix(go): indent const declaration
https://github.com/nvim-treesitter/nvim-treesitter/issues/3104
2022-07-08 00:14:29 +02:00
Kiyan
6f3fbb2622
fix(ecma): indent end for bracket (#3121) 2022-07-07 14:35:12 +02:00
Phelipe Teles
589d18ab68 test(indents/yaml): add tests 2022-06-14 22:37:52 +02:00
Bruno BELANYI
6e3f888dc7 test(tiger): import upstream tests 2022-06-14 22:34:03 +02:00
przepompownia
910743c77a Don't expect any change on reindenting the whole unfinished-call.php 2022-05-15 14:52:43 +02:00
przepompownia
d4d77b315f unfinished-call.php: expect 0-column indentation 2022-05-15 14:52:43 +02:00
przepompownia
c43d2cec08 Remove unused XFAIL 2022-05-15 14:52:43 +02:00
przepompownia
afd74f4ccf Change test expectation 2022-05-15 14:52:43 +02:00
Michael Hoffmann
82e43748cf indent(hcl): fix function calls 2022-04-25 23:36:36 +02:00
Michael Hoffmann
b1e8b61a94 indents(hcl): fix indentation queries
This commit adds tests for hcl indentation and fixes various bugs
2022-04-24 18:57:30 +02:00