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

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

[nongnu] elpa/swift-mode 89ce39c 050/496: Format file sections


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 89ce39c 050/496: Format file sections
Date: Sun, 29 Aug 2021 11:33:06 -0400 (EDT)

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

    Format file sections
    
    Use 3 semicolons, remove trailing periods.
---
 swift-mode.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/swift-mode.el b/swift-mode.el
index 980ce9c..b3fed55 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -46,6 +46,8 @@
   :group 'swift
   :type 'integer)
 
+;;; Indentation
+
 (defun swift-indent--paren-level ()
   "Return the paren level at point."
   (nth 0 (syntax-ppss)))
@@ -181,7 +183,7 @@ Returns the column number as an integer."
       (save-excursion
         (indent-line-to indent)))))
 
-;; Font lock.
+;;; Font lock
 
 (defvar swift-mode--type-decl-keywords
   '("class" "enum" "protocol" "struct" "typealias"))
@@ -280,7 +282,7 @@ Returns the column number as an integer."
     (cons (rx bow "import" eow (+ space) (group (+ word)))
           (list 1 font-lock-string-face)))))
 
-;; Mode definition.
+;;; Mode definition
 
 ;; HACK: This syntax table is lifted directly from `rust-mode'. There may be
 ;; corner cases in the Swift syntax that are not accounted for.



reply via email to

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