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

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

[nongnu] elpa/swift-mode a29398b 239/496: Fix half-open range operator


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode a29398b 239/496: Fix half-open range operator
Date: Sun, 29 Aug 2021 11:33:43 -0400 (EDT)

branch: elpa/swift-mode
commit a29398bcb4bcc369c97c007f01c09ff0217c1979
Author: Victor Shamanov <wiruzx@gmail.com>
Commit: Victor Shamanov <wiruzx@gmail.com>

    Fix half-open range operator
    
    It was changed in first versions of Swift
---
 swift-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/swift-mode.el b/swift-mode.el
index 6121b0a..a8d8d2b 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -180,7 +180,7 @@
        (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 ".." "...")                                   ;; Range (No 
associativity, precedence level 135)
+       (nonassoc "..<" "...")                                  ;; Range (No 
associativity, precedence level 135)
        (left "+" "-" "&+" "&-" "|" "^")                        ;; Additive 
(Left associative, precedence level 140)
        (left "*" "/" "%" "&*" "&/" "&%" "&")                   ;; 
Multiplicative (Left associative, precedence level 150)
        (nonassoc "<<" ">>")                                    ;; 
Exponentiative (No associativity, precedence level 160)
@@ -199,7 +199,7 @@
 (defvar swift-smie--operators-regexp
   (regexp-opt '("*=" "/=" "%=" "+=" "-=" "<<=" ">>=" "&=" "^=" "|=" "&&=" "||="
                 "<" "<=" ">" ">=" "==" "!=" "===" "!==" "~=" "||" "&&"
-                "is" "as" "as?" ".." "..."
+                "is" "as" "as?" "..<" "..."
                 "+" "-" "&+" "&-" "|" "^"
                 "*" "/" "%" "&*" "&/" "&%" "&"
                 "<<" ">>" "??")))



reply via email to

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