branch: elpa/swift-mode commit a44a755e44feaad98c5837b4cf67861d87503550 Author: Chris Barrett <chris.d.barr...@me.com> Commit: Chris Barrett <chris.d.barr...@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