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

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

[nongnu] elpa/swift-mode 2a21e1b 177/496: Add ternary operator smie gram


From: ELPA Syncer
Subject: [nongnu] elpa/swift-mode 2a21e1b 177/496: Add ternary operator smie grammar
Date: Sun, 29 Aug 2021 11:33:31 -0400 (EDT)

branch: elpa/swift-mode
commit 2a21e1bc324d1ea0384e1aae5a827d9c9bf48d01
Author: ap4y <lod@pisem.net>
Commit: ap4y <lod@pisem.net>

    Add ternary operator smie grammar
---
 swift-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/swift-mode.el b/swift-mode.el
index 3fd39d0..b8c5e74 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -112,6 +112,7 @@
 
        (insts (inst) (insts ";" insts))
        (inst (decl)
+             (tern-exp)
              (in-exp)
              (dot-exp)
              (dot-exp "{" insts "}")
@@ -134,6 +135,7 @@
        (in-exp (id "in" exp))
        (guard-exp (exp "where" exp))
        (op-exp (exp "OP" exp))
+       (tern-exp (op-exp "?" exp ":" exp))
 
        (enum-cases (assign-exp)
                    (enum-cases ";" "ecase" enum-cases))



reply via email to

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