branch: elpa/swift-mode commit a6d00b5683a181f6cf12e6c706d6322d9f15d7cc Author: taku0 <mxxouy6x3m_git...@tatapa.org> Commit: taku0 <mxxouy6x3m_git...@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)