Hi, 
I am trying to understand why sourceKit is reporting `static` as a 
"source.lang.swift.syntaxtype.keyword" instead of a 
“source.lang.swift.syntaxtype.attribute.builtin”?

All the modifiers in this list (except for class and static) are `builtin` 
https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Declarations.html#//apple_ref/swift/grammar/declaration-modifiers
 
<https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Declarations.html#//apple_ref/swift/grammar/declaration-modifiers>

I am trying to build a linting rule to enforce a consistent order of these 
attributes.  https://github.com/realm/SwiftLint/issues/387 
<https://github.com/realm/SwiftLint/issues/387>

Thanks
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to