swift-emacs / swift-mode

Emacs support for Apple's Swift programming language.
GNU General Public License v3.0
363 stars 47 forks source link

Protocol indentation #172

Closed kengruven closed 3 years ago

kengruven commented 3 years ago

Protocol members after throws are indented by swift-mode further than they should be:

protocol P {
    func f() throws
      func g()
    // comment
    func h() throws
      // comment
      var x: Int { get }
}

I think this should be indented more like:

protocol P {
    func f() throws
    func g()
    // comment
    func h() throws
    // comment
    var x: Int { get }
}
taku0 commented 3 years ago

Fixed by https://github.com/swift-emacs/swift-mode/commit/2293e78c2c4660e6f3559411f649c4a34eb7e8d8. Thank you.

kengruven commented 3 years ago

Looks good here. Thank you!