bazelbuild / vim-ft-bzl

Apache License 2.0
27 stars 13 forks source link

Fix indent for bzl files. #14

Closed chaoren closed 3 years ago

chaoren commented 3 years ago

Fixes https://github.com/bazelbuild/vim-ft-bzl/issues/1.

Before this change:

cc_binary(
        name = "hello-world",
        srcs = ["hello-world.cc"],
        deps = [
                ":hello-time",
                "//lib:hello-greet",
                ],
        )

Indent is shiftwidth() * 2 and the closing )/] don't match the opening (/[.

After this change:

cc_binary(
    name = "hello-world",
    srcs = ["hello-world.cc"],
    deps = [
        ":hello-time",
        "//lib:hello-greet",
    ],
)
dbarnett commented 3 years ago

Changes look reasonable, thanks! Merged.