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

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

[nongnu] elpa/swift-mode 7cefd8c 255/496: Fix token for generics


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 7cefd8c 255/496: Fix token for generics
Date: Sun, 29 Aug 2021 11:33:46 -0400 (EDT)

branch: elpa/swift-mode
commit 7cefd8ccbf851e540aef6b88ce284709406bb169
Author: uk-ar <yuuki.ari@gmail.com>
Commit: uk-ar <yuuki.ari@gmail.com>

    Fix token for generics
---
 swift-mode.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/swift-mode.el b/swift-mode.el
index fcf2df3..453100c 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -288,7 +288,9 @@
 
    ((looking-at "<") (forward-char 1)
     (if (looking-at "[[:upper:]]") "<T" "OP"))
-   ((looking-at ">") (forward-char 1)
+
+   ((looking-at ">[?!]?")
+    (goto-char (match-end 0))
     (if (looking-back "[[:space:]]>" 2 t) "OP" "T>"))
 
    ((looking-at swift-smie--operators-regexp)



reply via email to

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