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

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

[nongnu] elpa/swift-mode a44a755 052/496: Add docstrings for internal in


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode a44a755 052/496: Add docstrings for internal indent commands
Date: Sun, 29 Aug 2021 11:33:06 -0400 (EDT)

branch: elpa/swift-mode
commit a44a755e44feaad98c5837b4cf67861d87503550
Author: Chris Barrett <chris.d.barrett@me.com>
Commit: Chris Barrett <chris.d.barrett@me.com>

    Add docstrings for internal indent commands
---
 swift-mode.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/swift-mode.el b/swift-mode.el
index bd93d33..a538b7c 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -65,9 +65,11 @@
       (back-to-indentation))))
 
 (defun swift-indent--rewind-past-str-cmnt ()
+  "Move to the start of the comment at point."
   (goto-char (nth 8 (syntax-ppss))))
 
 (defun swift-indent--rewind-irrelevant ()
+  "Move backward past spaces and comments."
   (let ((starting (point)))
     (skip-chars-backward "[:space:]\n")
     (if (looking-back "\\*/") (backward-char))
@@ -77,6 +79,7 @@
         (swift-indent--rewind-irrelevant))))
 
 (defun swift-indent--align-to-expr-after-brace ()
+  "Return the column to use for aligning an expression after a brace."
   (save-excursion
     (forward-char)
     ;; We don't want to indent out to the open bracket if the



reply via email to

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