Skip to content

Commit a6d00b5

Browse files
committed
Simplify code
1 parent 2cd111f commit a6d00b5

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

swift-mode-lexer.el

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -282,23 +282,6 @@ Return nil otherwise."
282282
;; }
283283
((eq (swift-mode:token:type next-token) '\{) t)
284284

285-
;; Inserts implicit semicolon around #... directives.
286-
;;
287-
;; Note that we cannot split #if line; the following code is not allowed.
288-
;;
289-
;; #if
290-
;; true
291-
;; #end if
292-
((and
293-
(or
294-
(string-prefix-p "#" (swift-mode:token:text previous-token))
295-
(string-prefix-p "#" (swift-mode:token:text next-token)))
296-
(not (member (swift-mode:token:text previous-token)
297-
'("#file" "#line" "column" "#function")))
298-
(not (member (swift-mode:token:text next-token)
299-
'("#file" "#line" "column" "#function"))))
300-
t)
301-
302285
;; Supress implicit semicolon after attributes.
303286
((eq (swift-mode:token:type previous-token) 'attribute)
304287
nil)

0 commit comments

Comments
 (0)