瀏覽代碼

Copy the basic keyword types from Xcode

Philip Turner 3 年之前
父節點
當前提交
e617386720
共有 1 個文件被更改,包括 92 次插入75 次删除
  1. 92 75
      src/basic-languages/swift/swift.ts

+ 92 - 75
src/basic-languages/swift/swift.ts

@@ -61,81 +61,98 @@ export const language = <languages.IMonarchLanguage>{
 		'__FILE__',
 		'__FUNCTION__',
 		'__LINE__',
-		'as',
-		'as!',
-		'as?',
-		'associativity',
-		'break',
-		'case',
-		'catch',
-		'class',
-		'continue',
-		'convenience',
-		'default',
-		'deinit',
-		'didSet',
-		'do',
-		'dynamic',
-		'dynamicType',
-		'else',
-		'enum',
-		'extension',
-		'fallthrough',
-		'fileprivate',
-		'final',
-		'for',
-		'func',
-		'get',
-		'guard',
-		'if',
-		'import',
-		'in',
-		'infix',
-		'init',
-		'inout',
-		'internal',
-		'is',
-		'lazy',
-		'left',
-		'let',
-		'mutating',
-		'nil',
-		'none',
-		'nonmutating',
-		'operator',
-		'optional',
-		'override',
-		'postfix',
-		'precedence',
-		'prefix',
-		'private',
-		'protocol',
-		'Protocol',
-		'public',
-		'repeat',
-		'required',
-		'return',
-		'right',
-		'self',
-		'Self',
-		'set',
-		'static',
-		'struct',
-		'subscript',
-		'super',
-		'switch',
-		'throw',
-		'throws',
-		'try',
-		'try!',
-		'Type',
-		'typealias',
-		'unowned',
-		'var',
-		'weak',
-		'where',
-		'while',
-		'willSet',
+		'Any',
+                'Protocol',
+                'Self',
+                'Type',
+                'actor',
+                'as',
+                'assignment',
+                'associatedtype',
+                'associativity',
+                'async',
+                'await',
+                'break',
+                'case',
+                'catch',
+                'class',
+                'continue',
+                'convenience',
+                'default',
+                'defer',
+                'deinit',
+                'didSet',
+                'do',
+                'dynamic',
+                'dynamicType',
+                'else',
+                'enum',
+                'extension',
+                'fallthrough',
+                'false',
+                'fileprivate',
+                'final',
+                'for',
+                'func',
+                'get',
+                'guard',
+                'higherThan',
+                'if',
+                'import',
+                'in',
+                'indirect',
+                'infix',
+                'init',
+                'inout',
+                'internal',
+                'is',
+                'isolated',
+                'lazy',
+                'left',
+                'let',
+                'lowerThan',
+                'mutating',
+                'nil',
+                'none',
+                'nonisolated',
+                'nonmutating',
+                'open',
+                'operator',
+                'optional',
+                'override',
+                'postfix',
+                'precedence',
+                'precedencegroup',
+                'prefix',
+                'private',
+                'protocol',
+                'public',
+                'repeat',
+                'required',
+                'rethrows',
+                'return',
+                'right',
+                'safe',
+                'self',
+                'set',
+                'some',
+                'static',
+                'struct',
+                'subscript',
+                'super',
+                'switch',
+                'throw',
+                'throws',
+                'true',
+                'try',
+                'typealias',
+                'unowned',
+                'unsafe',
+                'var',
+                'weak',
+                'where',
+                'while',
+                'willSet',
 		'FALSE',
 		'TRUE'
 	],