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

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

[nongnu] elpa/swift-mode ea029a0 370/496: Suppress implicit semicolons i


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode ea029a0 370/496: Suppress implicit semicolons inside interpolated expressions
Date: Sun, 29 Aug 2021 11:34:09 -0400 (EDT)

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

    Suppress implicit semicolons inside interpolated expressions
---
 swift-mode-lexer.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/swift-mode-lexer.el b/swift-mode-lexer.el
index e986af2..c2bb0b8 100644
--- a/swift-mode-lexer.el
+++ b/swift-mode-lexer.el
@@ -389,6 +389,13 @@ Return nil otherwise."
        (memq (swift-mode:token:type previous-token) '({ \( \[))
        (memq (swift-mode:token:type next-token) '(} \) \]))
 
+       ;; Suppress implicit semicolon after/before string chunks inside
+       ;; interpolated expressions.
+       (eq (swift-mode:token:type previous-token)
+           'string-chunk-before-interpolated-expression)
+       (eq (swift-mode:token:type next-token)
+           'string-chunk-after-interpolated-expression)
+
        ;; Suppress implicit semicolon around keywords that cannot start or end
        ;; statements.
        (member (swift-mode:token:text previous-token)



reply via email to

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