Is this expected ?
# as I expect
styler::style_text("a(\nb)")
#> a(
#> b
#> )
styler::style_text("a[\nb]")
#> a[
#> b
#> ]
# inconsistent, no indent, no pushing ]] to next line
styler::style_text("a[[\nb]]")
#> a[[
#> b]]
Created on 2022-10-15 with reprex v2.0.2