mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Copy attribute keywords from Xcode
This commit is contained in:
parent
7fc2b23c7e
commit
41ff265429
1 changed files with 37 additions and 13 deletions
|
|
@ -40,20 +40,44 @@ export const language = <languages.IMonarchLanguage>{
|
|||
identifier: /[a-zA-Z_][\w$]*/,
|
||||
// TODO(owensd): Support the @availability macro properly.
|
||||
attributes: [
|
||||
'@GKInspectable',
|
||||
'@IBAction',
|
||||
'@IBDesignable',
|
||||
'@IBInspectable',
|
||||
'@IBOutlet',
|
||||
'@IBSegueAction',
|
||||
'@NSApplicationMain',
|
||||
'@NSCopying',
|
||||
'@NSManaged',
|
||||
'@Sendable',
|
||||
'@UIApplicationMain',
|
||||
|
||||
'@autoclosure',
|
||||
'@noescape',
|
||||
'@noreturn',
|
||||
'@NSApplicationMain',
|
||||
'@NSCopying',
|
||||
'@NSManaged',
|
||||
'@objc',
|
||||
'@UIApplicationMain',
|
||||
'@noreturn',
|
||||
'@availability',
|
||||
'@IBAction',
|
||||
'@IBDesignable',
|
||||
'@IBInspectable',
|
||||
'@IBOutlet'
|
||||
'@actorIndependent',
|
||||
'@asyncHandler',
|
||||
'@available',
|
||||
'@convention',
|
||||
'@discardableResult',
|
||||
'@dynamicCallable',
|
||||
'@dynamicMemberLookup',
|
||||
'@escaping',
|
||||
'@frozen',
|
||||
'@globalActor',
|
||||
'@inlinable',
|
||||
'@inline',
|
||||
'@main',
|
||||
'@nonobjc',
|
||||
'@noreturn',
|
||||
'@objc',
|
||||
'@objcMembers',
|
||||
'@propertyWrapper',
|
||||
'@requires_stored_property_inits',
|
||||
'@resultBuilder',
|
||||
'@testable',
|
||||
'@unchecked',
|
||||
'@unknown',
|
||||
'@usableFromInline',
|
||||
'@warn_unqualified_access',
|
||||
],
|
||||
accessmodifiers: ['open', 'public', 'internal', 'fileprivate', 'private'],
|
||||
keywords: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue