branch: elpa/swift-mode commit 5611c0f32960539036616b2072aaad3365ba20ab Author: Christian Kruse <c...@defunct.ch> Commit: Christian Kruse <c...@defunct.ch>
Updated syntax: a lot of attributes moved to keywords - required, dynamic, final, lazy and optional are now keywords - the assignment attribute no longer exists Source: <https://developer.apple.com/library/mac/documentation/swift/conceptual/Swift_Programming_Language/RevisionHistory.html> --- swift-mode.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/swift-mode.el b/swift-mode.el index 7d69b9f..81d6553 100644 --- a/swift-mode.el +++ b/swift-mode.el @@ -331,11 +331,12 @@ (defvar swift-mode--contextual-keywords '("associativity" "didSet" "get" "infix" "inout" "left" "mutating" "none" "nonmutating" "operator" "override" "postfix" "precedence" "prefix" "right" - "set" "unowned" "unowned(safe)" "unowned(unsafe)" "weak" "willSet" "convenience")) + "set" "unowned" "unowned(safe)" "unowned(unsafe)" "weak" "willSet" "convenience" + "required" "dynamic" "final" "lazy" "optional")) (defvar swift-mode--attribute-keywords - '("assignment" "class_protocol" "exported" "final" "lazy" "noreturn" - "NSCopying" "NSManaged" "objc" "optional" "required" "auto_closure" + '("class_protocol" "exported" "noreturn" + "NSCopying" "NSManaged" "objc" "auto_closure" "IBAction" "IBDesignable" "IBInspectable" "IBOutlet")) (defvar swift-mode--keywords