branch: elpa/swift-mode commit 1d435010bc3a1bfa1f8a640cb4f771f1e33192a9 Author: taku0 <mxxouy6x3m_git...@tatapa.org> Commit: taku0 <mxxouy6x3m_git...@tatapa.org>
Fix indentation of attributes at begging of the buffer. --- swift-mode-indent.el | 1 + 1 file changed, 1 insertion(+) diff --git a/swift-mode-indent.el b/swift-mode-indent.el index bd4fdf6..c9c1ef0 100644 --- a/swift-mode-indent.el +++ b/swift-mode-indent.el @@ -658,6 +658,7 @@ the expression." (when (and after-attributes (save-excursion (goto-char (swift-mode:token:end parent)) + (forward-comment (point-max)) (eq (swift-mode:token:type (swift-mode:forward-token)) 'attribute))) (setq offset 0))