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