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

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

[nongnu] elpa/swift-mode a6d00b5 352/496: Simplify code


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode a6d00b5 352/496: Simplify code
Date: Sun, 29 Aug 2021 11:34:05 -0400 (EDT)

branch: elpa/swift-mode
commit a6d00b5683a181f6cf12e6c706d6322d9f15d7cc
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>

    Simplify code
---
 swift-mode-lexer.el | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/swift-mode-lexer.el b/swift-mode-lexer.el
index 6739b0f..4f50177 100644
--- a/swift-mode-lexer.el
+++ b/swift-mode-lexer.el
@@ -282,23 +282,6 @@ Return nil otherwise."
      ;; }
      ((eq (swift-mode:token:type next-token) '\{) t)
 
-     ;; Inserts implicit semicolon around #... directives.
-     ;;
-     ;; Note that we cannot split #if line; the following code is not allowed.
-     ;;
-     ;; #if
-     ;;   true
-     ;; #end if
-     ((and
-       (or
-        (string-prefix-p "#" (swift-mode:token:text previous-token))
-        (string-prefix-p "#" (swift-mode:token:text next-token)))
-       (not (member (swift-mode:token:text previous-token)
-                    '("#file" "#line" "column" "#function")))
-       (not (member (swift-mode:token:text next-token)
-                    '("#file" "#line" "column" "#function"))))
-      t)
-
      ;; Supress implicit semicolon after attributes.
      ((eq (swift-mode:token:type previous-token) 'attribute)
       nil)



reply via email to

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