mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 16:15:41 +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$]*/,
|
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: [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue