Commit graph

15 commits

Author SHA1 Message Date
George Harker
cb568af539 use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md

adjust indents for bass

fix doc capture comment
2023-03-24 13:07:53 -04:00
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
Amaan Qureshi
7dfaa60a85 feat(java): distinguish escape sequences, move certain keywords to more appropriate places 2023-02-23 15:41:26 -08:00
Daniel Woznicki
e1f8a8a6f8 Fixed incorrect Java indentation for method chaining 2022-04-04 06:58:26 +02:00
Daniel Woznicki
3d6f2637a2 Made block comment indent @auto so that new lines line up nicely with existing comment block
Previous indentation:
    /**
    *
    */

    New indentation:
    /**
     *
     */
2022-03-01 21:12:14 +01:00
Daniel Woznicki
d71da4f63e Added catchall (ERROR) @auto rule for Java to at least attempt something reasonable when the tree is in a broken state 2022-03-01 21:12:14 +01:00
Daniel Woznicki
e23f5d48be Modified Java indent rules to stop ignoring block comments because javadoc blocks were defaulting to indent 0 2022-03-01 21:12:14 +01:00
Daniel Woznicki
bf2493f5e1 Added fix for Java interfaces not being indented properly 2022-03-01 21:12:14 +01:00
Daniel Woznicki
18c558fd92 Fixed a bug where indentation was not correct for class/enum bodies that had an annotation 2022-02-25 08:03:43 +01:00
Daniel Woznicki
1b47af43ce Fixed a bug where Java enum body indentation was not correct
Added test for Java enum indentation
2022-02-25 08:03:43 +01:00
Daniel Woznicki
b425a9c813 Added fix for incorrect Java indentation after a closing "}" in a method declaration
Added tests for Java indentation, including one for issue 2571
2022-02-25 00:58:59 +01:00
Stephan Seitz
152af07ecf highlights/injections/indents(java): comment -> line_comment,block_comment
Ref https://github.com/tree-sitter/tree-sitter-java/pull/93
2022-01-16 14:24:20 +01:00
elianiva
0bf8f58cd2 feat: use @ignore for comments and multiline strings 2021-03-01 23:28:53 +01:00
elianiva
1ab424d384 add formal_parameters
as suggested by p00f

Co-authored-by: Chinmay Dalal <chinmay.dalal.22012001@gmail.com>
2021-02-21 15:08:50 +01:00
elianiva
a1b51a67d5 feat: add java indent 2021-02-21 15:08:50 +01:00