branch: elpa/swift-mode commit 2a21e1bc324d1ea0384e1aae5a827d9c9bf48d01 Author: ap4y <l...@pisem.net> Commit: ap4y <l...@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))