branch: elpa/swift-mode commit 4ab5f7fc4249ed1aeb399723b353247a1dbff605 Author: ap4y <l...@pisem.net> Commit: ap4y <l...@pisem.net>
Add implicit semicolon rule for ?? operator --- swift-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swift-mode.el b/swift-mode.el index 6e5498f..3ae3e6a 100644 --- a/swift-mode.el +++ b/swift-mode.el @@ -214,8 +214,8 @@ ;; they can be a part of the type. ;; Special case: is? and as? are operators. (looking-back "[[:space:]][?!]" (- (point) 2) t) - ;; is? and as? are operators - (looking-back "as[?]\\|is[?]" (- (point) 3) t) + ;; ??, is? and as? are operators + (looking-back "[?][?]\\|as[?]\\|is[?]" (- (point) 3) t) ;; Leding character in multi-line expression (looking-at "[ \n\t]+[.?:]") (and (looking-back swift-smie--operators-regexp (- (point) 3) t)