Copy attribute keywords from Xcode

This commit is contained in:
Philip Turner 2021-12-26 14:05:44 -05:00 committed by GitHub
parent 7fc2b23c7e
commit 41ff265429
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,20 +40,44 @@ export const language = <languages.IMonarchLanguage>{
identifier: /[a-zA-Z_][\w$]*/, identifier: /[a-zA-Z_][\w$]*/,
// TODO(owensd): Support the @availability macro properly. // TODO(owensd): Support the @availability macro properly.
attributes: [ attributes: [
'@GKInspectable',
'@IBAction',
'@IBDesignable',
'@IBInspectable',
'@IBOutlet',
'@IBSegueAction',
'@NSApplicationMain',
'@NSCopying',
'@NSManaged',
'@Sendable',
'@UIApplicationMain',
'@autoclosure', '@autoclosure',
'@noescape', '@actorIndependent',
'@noreturn', '@asyncHandler',
'@NSApplicationMain', '@available',
'@NSCopying', '@convention',
'@NSManaged', '@discardableResult',
'@objc', '@dynamicCallable',
'@UIApplicationMain', '@dynamicMemberLookup',
'@noreturn', '@escaping',
'@availability', '@frozen',
'@IBAction', '@globalActor',
'@IBDesignable', '@inlinable',
'@IBInspectable', '@inline',
'@IBOutlet' '@main',
'@nonobjc',
'@noreturn',
'@objc',
'@objcMembers',
'@propertyWrapper',
'@requires_stored_property_inits',
'@resultBuilder',
'@testable',
'@unchecked',
'@unknown',
'@usableFromInline',
'@warn_unqualified_access',
], ],
accessmodifiers: ['open', 'public', 'internal', 'fileprivate', 'private'], accessmodifiers: ['open', 'public', 'internal', 'fileprivate', 'private'],
keywords: [ keywords: [