emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/swift-mode 1d43501 330/496: Fix indentation of attributes


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 1d43501 330/496: Fix indentation of attributes at begging of the buffer.
Date: Sun, 29 Aug 2021 11:34:01 -0400 (EDT)

branch: elpa/swift-mode
commit 1d435010bc3a1bfa1f8a640cb4f771f1e33192a9
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]