branch: elpa/swift-mode
commit 7f258067417f9c1f79e4a1d82dabbda340248c94
Author: Victor Shamanov <wir...@gmail.com>
Commit: Victor Shamanov <wir...@gmail.com>

    Add as! operator
---
 swift-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/swift-mode.el b/swift-mode.el
index a8d8d2b..9597644 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -179,7 +179,7 @@
        (left "||")                                             ;; Disjunctive 
(Left associative, precedence level 110)
        (left "&&")                                             ;; Conjunctive 
(Left associative, precedence level 120)
        (nonassoc "<" "<=" ">" ">=" "==" "!=" "===" "!==" "~=") ;; Comparative 
(No associativity, precedence level 130)
-       (nonassoc "is" "as" "as?")                              ;; Cast (No 
associativity, precedence level 132)
+       (nonassoc "is" "as" "as!" "as?")                        ;; Cast (No 
associativity, precedence level 132)
        (nonassoc "..<" "...")                                  ;; Range (No 
associativity, precedence level 135)
        (left "+" "-" "&+" "&-" "|" "^")                        ;; Additive 
(Left associative, precedence level 140)
        (left "*" "/" "%" "&*" "&/" "&%" "&")                   ;; 
Multiplicative (Left associative, precedence level 150)
@@ -199,7 +199,7 @@
 (defvar swift-smie--operators-regexp
   (regexp-opt '("*=" "/=" "%=" "+=" "-=" "<<=" ">>=" "&=" "^=" "|=" "&&=" "||="
                 "<" "<=" ">" ">=" "==" "!=" "===" "!==" "~=" "||" "&&"
-                "is" "as" "as?" "..<" "..."
+                "is" "as" "as!" "as?" "..<" "..."
                 "+" "-" "&+" "&-" "|" "^"
                 "*" "/" "%" "&*" "&/" "&%" "&"
                 "<<" ">>" "??")))

Reply via email to