]> git.eshelyaron.com Git - emacs.git/commit
Add array_initializer to java-ts-mode
authorTheodor Thornhill <theo@thornhill.no>
Sun, 5 Feb 2023 07:24:14 +0000 (08:24 +0100)
committerTheodor Thornhill <theo@thornhill.no>
Mon, 6 Feb 2023 06:43:37 +0000 (07:43 +0100)
commitc3262216abbb9ea04e1d3af25df1f9743efd1513
tree2169d893af86794ca5855d4b18ef108867e06949
parent79ab62e0bb5d6185a358a2473c65b6461ea97793
Add array_initializer to java-ts-mode

Indent strings inside arrray_initializer one step:

public class Java {
    void foo() {
        return new String[]{
            "foo", // These
            "bar"
        }
    }
}

* lisp/progmodes/java-ts-mode.el (java-ts-mode--indent-rules): New
matcher.
lisp/progmodes/java-ts-mode.el