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

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

[nongnu] elpa/swift-mode 4ab5f7f 201/496: Add implicit semicolon rule fo


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 4ab5f7f 201/496: Add implicit semicolon rule for ?? operator
Date: Sun, 29 Aug 2021 11:33:36 -0400 (EDT)

branch: elpa/swift-mode
commit 4ab5f7fc4249ed1aeb399723b353247a1dbff605
Author: ap4y <lod@pisem.net>
Commit: ap4y <lod@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)



reply via email to

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