swift"
								},
								"4": {
									"name": "punctuation.definition.identifier.swift"
								}
							},
							"comment": "If no external label is given, the name is both the external label and the internal variable name",
							"match": "(((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>)))(?=\\s*:)"
						},
						{
							"begin": ":\\s*(?!\\s)",
							"end": "(?=[,)])",
							"patterns": [
								{
									"include": "#available-types"
								},
								{
									"match": ":",
									"name": "invalid.illegal.extra-colon-in-parameter-list.swift"
								},
								{
									"begin": "=",
									"beginCaptures": {
										"0": {
											"name": "keyword.operator.assignment.swift"
										}
									},
									"comment": "a parameter's default value",
									"end": "(?=[,)])",
									"patterns": [
										{
											"include": "#expressions"
										}
									]
								}
							]
						}
					]
				},
				"precedencegroup": {
					"begin": "\\b(precedencegroup)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*(?=\\{)",
					"beginCaptures": {
						"1": {
							"name": "storage.type.precedencegroup.swift"
						},
						"2": {
							"name": "entity.name.type.precedencegroup.swift"
						},
						"3": {
							"name": "punctuation.definition.identifier.swift"
						},
						"4": {
							"name": "punctuation.definition.identifier.swift"
						}
					},
					"end": "(?!\\G)",
					"name": "meta.definition.precedencegroup.swift",
					"patterns": [
						{
							"begin": "\\{",
							"beginCaptures": {
								"0": {
									"name": "punctuation.definition.precedencegroup.begin.swift"
								}
							},
							"end": "\\}",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.precedencegroup.end.swift"
								}
							},
							"patterns": [
								{
									"include": "#comments"
								},
								{
									"captures": {
										"1": {
											"name": "storage.modifier.swift"
										},
										"2": {
											"name": "entity.other.inherited-class.swift",
											"patterns": [
												{
													"include": "#types-precedencegroup"
												}
											]
										},
										"3": {
											"name": "punctuation.definition.identifier.swift"
										},
										"4": {
											"name": "punctuation.definition.identifier.swift"
										}
									},
									"match": "\\b(higherThan|lowerThan)\\s*:\\s*((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))"
								},
								{
									"captures": {
										"1": {
											"name": "storage.modifier.swift"
										},
										"2": {
											"name": "keyword.other.operator.associativity.swift"
										}
									},
									"match": "\\b(associativity)\\b(?:\\s*:\\s*(right|left|none)\\b)?"
								},
								{
									"captures": {
										"1": {
											"name": "storage.modifier.swift"
										},
										"2": {
											"name": "constant.language.boolean.swift"
										}
									},
									"match": "\\b(assignment)\\b(?:\\s*:\\s*(true|false)\\b)?"
								}
							]
						}
					]
				},
				"protocol": {
					"begin": "\\b(protocol)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))",
					"beginCaptures": {
						"1": {
							"name": "storage.type.$1.swift"
						},
						"2": {
							"name": "entity.name.type.$1.swift"
						},
						"3": {
							"name": "punctuation.definition.identifier.swift"
						},
						"4": {
							"name": "punctuation.definition.identifier.swift"
						}
					},
					"end": "(?<=\\})",
					"name": "meta.definition.type.protocol.swift",
					"patterns": [
						{
							"include": "#comments"
						},
						{
							"include": "#inheritance-clause"
						},
						{
							"comment": "SE-0142: Permit where clauses to constrain associated types",
							"include": "#generic-where-clause"
						},
						{
							"begin": "\\{",
							"beginCaptures": {
								"0": {
									"name": "punctuation.definition.type.begin.swift"
								}
							},
							"end": "\\}",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.type.end.swift"
								}
							},
							"name": "meta.definition.type.body.swift",
							"patterns": [
								{
									"include": "#protocol-method"
								},
								{
									"include": "#protocol-initializer"
								},
								{
									"include": "#associated-type"
								},
								{
									"include": "$self"
								}
							]
						}
					],
					"repository": {
						"associated-type": {
							"begin": "\\b(associatedtype)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*",
							"beginCaptures": {
								"1": {
									"name": "keyword.other.declaration-specifier.swift"
								},
								"2": {
									"name": "variable.language.associatedtype.swift"
								},
								"3": {
									"name": "punctuation.definition.identifier.swift"
								},
								"4": {
									"name": "punctuation.definition.identifier.swift"
								}
							},
							"end": "(?!\\G)$|(?=[;}]|$)",
							"name": "meta.definition.associatedtype.swift",
							"patterns": [
								{
									"include": "#inheritance-clause"
								},
								{
									"comment": "SE-0142: Permit where clauses to constrain associated types",
									"include": "#generic-where-clause"
								},
								{
									"include": "#typealias-assignment"
								}
							]
						},
						"protocol-initializer": {
							"begin": "(?<!\\.)\\b(init[?!]*(?# only one is valid, but we want the in⇥ snippet to produce something that looks good))\\s*(?=\\(|<)",
							"beginCaptures": {
								"1": {
									"name": "storage.type.function.swift",
									"patterns": [
										{
											"match": "(?<=[?!])[?!]+",
											"name": "invalid.illegal.character-not-allowed-here.swift"
										}
									]
								}
							},
							"end": "$|(?=;|//|/\\*|\\})",
							"name": "meta.definition.function.initializer.swift",
							"patterns": [
								{
									"include": "#comments"
								},
								{
									"include": "#generic-parameter-clause"
								},
								{
									"include": "#parameter-clause"
								},
								{
									"include": "#async-throws"
								},
								{
									"comment": "Swift 3: generic constraints after the parameters and return type",
									"include": "#generic-where-clause"
								},
								{
									"begin": "\\{",
									"beginCaptures": {
										"0": {
											"name": "punctuation.section.function.begin.swift"
										}
									},
									"end": "\\}",
									"endCaptures": {
										"0": {
											"name": "punctuation.section.function.end.swift"
										}
									},
									"name": "invalid.illegal.function-body-not-allowed-in-protocol.swift",
									"patterns": [
										{
											"include": "$self"
										}
									]
								}
							]
						},
						"protocol-method": {
							"begin": "(?x)\n\t\t\t\t\t\t\t\t\\b\n\t\t\t\t\t\t\t\t(func)\n\t\t\t\t\t\t\t\t\\s+\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t(?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>)\n\t\t  \t\t\t\t\t\t  | (?:\n\t\t  \t\t\t\t\t\t\t\t(\n\t\t  \t\t\t\t\t\t\t\t\t(?<oph>\t\t\t\t\t\t\t\t# operator-head\n\t\t  \t\t\t\t\t\t\t\t\t\t[/=\\-+!*%<>&|^~?]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{00A1}-\\x{00A7}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{00A9}\\x{00AB}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{00AC}\\x{00AE}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{00B0}-\\x{00B1}\\x{00B6}\\x{00BB}\\x{00BF}\\x{00D7}\\x{00F7}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{2016}-\\x{2017}\\x{2020}-\\x{2027}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{2030}-\\x{203E}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{2041}-\\x{2053}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{2055}-\\x{205E}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{2190}-\\x{23FF}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{2500}-\\x{2775}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{2794}-\\x{2BFF}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{2E00}-\\x{2E7F}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{3001}-\\x{3003}]\n\t\t  \t\t\t\t\t\t\t\t\t  | [\\x{3008}-\\x{3030}]\n\t\t  \t\t\t\t\t\t\t\t\t)\n\t\t  \t\t\t\t\t\t\t\t\t(\n\t\t  \t\t\t\t\t\t\t\t\t\t\\g<oph>\n\t\t  \t\t\t\t\t\t\t\t\t  | (?<opc>\t\t\t\t\t\t\t\t# operator-character\n\t\t  \t\t\t\t\t\t\t\t\t\t\t[\\x{0300}-\\x{036F}]\n\t\t  \t\t\t\t\t\t\t\t\t\t  | [\\x{1DC0}-\\x{1DFF}]\n\t\t  \t\t\t\t\t\t\t\t\t\t  | [\\x{20D0}-\\x{20FF}]\n\t\t  \t\t\t\t\t\t\t\t\t\t  | [\\x{FE00}-\\x{FE0F}]\n\t\t  \t\t\t\t\t\t\t\t\t\t  | [\\x{FE20}-\\x{FE2F}]\n\t\t  \t\t\t\t\t\t\t\t\t\t  | [\\x{E0100}-\\x{E01EF}]\n\t\t  \t\t\t\t\t\t\t\t\t\t)\n\t\t  \t\t\t\t\t\t\t\t\t)*\n\t\t  \t\t\t\t\t\t\t\t)\n\t\t  \t\t\t\t\t\t\t  | ( \\. ( \\g<oph> | \\g<opc> | \\. )+ )\t\t\t# Dot operators\n\t\t  \t\t\t\t\t\t\t)\n\t\t  \t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\\s*\n\t\t\t\t\t\t\t\t(?=\\(|<)\n\t\t\t\t\t\t\t",
							"beginCaptures": {
								"1": {
									"name": "storage.type.function.swift"
								},
								"2": {
									"name": "entity.name.function.swift"
								},
								"3": {
									"name": "punctuation.definition.identifier.swift"
								},
								"4": {
									"name": "punctuation.definition.identifier.swift"
								}
							},
							"end": "$|(?=;|//|/\\*|\\})",
							"name": "meta.definition.function.swift",
							"patterns": [
								{
									"include": "#comments"
								},
								{
									"include": "#generic-parameter-clause"
								},
								{
									"include": "#parameter-clause"
								},
								{
									"include": "#function-result"
								},
								{
									"include": "#async-throws"
								},
								{
									"comment": "Swift 3: generic constraints after the parameters and return type",
									"include": "#generic-where-clause"
								},
								{
									"begin": "\\{",
									"beginCaptures": {
										"0": {
											"name": "punctuation.section.function.begin.swift"
										}
									},
									"end": "\\}",
									"endCaptures": {
										"0": {
											"name": "punctuation.section.function.end.swift"
										}
									},
									"name": "invalid.illegal.function-body-not-allowed-in-protocol.swift",
									"patterns": [
										{
											"include": "$self"
										}
									]
								}
							]
						}
					}
				},
				"type": {
					"patterns": [
						{
							"begin": "\\b(class(?!\\s+(?:func|var|let)\\b)|struct|actor)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))",
							"beginCaptures": {
								"1": {
									"name": "storage.type.$1.swift"
								},
								"2": {
									"name": "entity.name.type.$1.swift"
								},
								"3": {
									"name": "punctuation.definition.identifier.swift"
								},
								"4": {
									"name": "punctuation.definition.identifier.swift"
								}
							},
							"end": "(?<=\\})",
							"name": "meta.definition.type.$1.swift",
							"patterns": [
								{
									"include": "#comments"
								},
								{
									"include": "#generic-parameter-clause"
								},
								{
									"comment": "Swift 3: generic constraints after the generic param list",
									"include": "#generic-where-clause"
								},
								{
									"include": "#inheritance-clause"
								},
								{
									"begin": "\\{",
									"beginCaptures": {
										"0": {
											"name": "punctuation.definition.type.begin.swift"
										}
									},
									"end": "\\}",
									"endCaptures": {
										"0": {
											"name": "punctuation.definition.type.end.swift"
										}
									},
									"name": "meta.definition.type.body.swift",
									"patterns": [
										{
											"include": "$self"
										}
									]
								}
							]
						},
						{
							"include": "#type-enum"
						}
					]
				},
				"type-enum": {
					"begin": "\\b(enum)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))",
					"beginCaptures": {
						"1": {
							"name": "storage.type.$1.swift"
						},
						"2": {
							"name": "entity.name.type.$1.swift"
						},
						"3": {
							"name": "punctuation.definition.identifier.swift"
						},
						"4": {
							"name": "punctuation.definition.identifier.swift"
						}
					},
					"end": "(?<=\\})",
					"name": "meta.definition.type.$1.swift",
					"patterns": [
						{
							"include": "#comments"
						},
						{
							"include": "#generic-parameter-clause"
						},
						{
							"comment": "Swift 3: generic constraints after the generic param list",
							"include": "#generic-where-clause"
						},
						{
							"include": "#inheritance-clause"
						},
						{
							"begin": "\\{",
							"beginCaptures": {
								"0": {
									"name": "punctuation.definition.type.begin.swift"
								}
							},
							"end": "\\}",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.type.end.swift"
								}
							},
							"name": "meta.definition.type.body.swift",
							"patterns": [
								{
									"include": "#enum-case-clause"
								},
								{
									"include": "$self"
								}
							]
						}
					],
					"repository": {
						"associated-values": {
							"begin": "\\G\\(",
							"beginCaptures": {
								"0": {
									"name": "punctuation.definition.parameters.begin.swift"
								}
							},
							"end": "\\)",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.parameters.end.swift"
								}
							},
							"patterns": [
								{
									"include": "#comments"
								},
								{
									"begin": "(?x)\n\t\t\t\t\t\t\t\t\t\t(?:(_)|((?<q1>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*\\k<q1>))\n\t\t\t\t\t\t\t\t\t\t\\s+\n\t\t\t\t\t\t\t\t\t\t(((?<q2>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*\\k<q2>))\n\t\t\t\t\t\t\t\t\t\t\\s*(:)",
									"beginCaptures": {
										"1": {
											"name": "entity.name.function.swift"
										},
										"2": {
											"name": "invalid.illegal.distinct-labels-not-allowed.swift"
										},
										"5": {
											"name": "variable.parameter.function.swift"
										},
										"7": {
											"name": "punctuation.separator.argument-label.swift"
										}
									},
									"end": "(?=[,)\\]])",
									"patterns": [
										{
											"include": "#available-types"
										}
									]
								},
								{
									"begin": "(((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*\\k<q>))\\s*(:)",
									"beginCaptures": {
										"1": {
											"name": "entity.name.function.swift"
										},
										"2": {
											"name": "variable.parameter.function.swift"
										},
										"4": {
											"name": "punctuation.separator.argument-label.swift"
										}
									},
									"end": "(?=[,)\\]])",
									"patterns": [
										{
											"include": "#available-types"
										}
									]
								},
								{
									"begin": "(?![,)\\]])(?=\\S)",
									"comment": "an element without a label (i.e. anything else)",
									"end": "(?=[,)\\]])",
									"patterns": [
										{
											"include": "#available-types"
										},
										{
											"match": ":",
											"name": "invalid.illegal.extra-colon-in-parameter-list.swift"
										}
									]
								}
							]
						},
						"enum-case": {
							"begin": "(?x)((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*",
							"beginCaptures": {
								"1": {
									"name": "constant.other.swift"
								}
							},
							"end": "(?<=\\))|(?![=(])",
							"patterns": [
								{
									"include": "#comments"
								},
								{
									"include": "#associated-values"
								},
								{
									"include": "#raw-value-assignment"
								}
							]
						},
						"enum-case-clause": {
							"begin": "\\b(case)\\b\\s*",
							"beginCaptures": {
								"1": {
									"name": "storage.type.enum.case.swift"
								}
							},
							"end": "(?=[;}])|(?!\\G)(?!//|/\\*)(?=[^\\s,])",
							"patterns": [
								{
									"include": "#comments"
								},
								{
									"include": "#enum-case"
								},
								{
									"include": "#more-cases"
								}
							]
						},
						"more-cases": {
							"begin": ",\\s*",
							"end": "(?!\\G)(?!//|/\\*)(?=[;}]|[^\\s,])",
							"name": "meta.enum-case.more-cases",
							"patterns": [
								{
									"include": "#comments"
								},
								{
									"include": "#enum-case"
								},
								{
									"include": "#more-cases"
								}
							]
						},
						"raw-value-assignment": {
							"begin": "(=)\\s*",
							"beginCaptures": {
								"1": {
									"name": "keyword.operator.assignment.swift"
								}
							},
							"end": "(?!\\G)",
							"patterns": [
								{
									"include": "#comments"
								},
								{
									"include": "#literals"
								}
							]
						}
					}
				},
				"type-identifier": {
					"begin": "((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*",
					"beginCaptures": {
						"1": {
							"name": "meta.type-name.swift",
							"patterns": [
								{
									"include": "#builtin-types"
								}
							]
						},
						"2": {
							"name": "punctuation.definition.identifier.swift"
						},
						"3": {
							"name": "punctuation.definition.identifier.swift"
						}
					},
					"end": "(?!<)",
					"patterns": [
						{
							"begin": "(?=<)",
							"end": "(?!\\G)",
							"patterns": [
								{
									"include": "#generic-argument-clause"
								}
							]
						}
					]
				},
				"typealias": {
					"begin": "\\b(typealias)\\s+((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*",
					"beginCaptures": {
						"1": {
							"name": "keyword.other.declaration-specifier.swift"
						},
						"2": {
							"name": "entity.name.type.typealias.swift"
						},
						"3": {
							"name": "punctuation.definition.identifier.swift"
						},
						"4": {
							"name": "punctuation.definition.identifier.swift"
						}
					},
					"end": "(?!\\G)$|(?=;|//|/\\*|$)",
					"name": "meta.definition.typealias.swift",
					"patterns": [
						{
							"begin": "\\G(?=<)",
							"end": "(?!\\G)",
							"patterns": [
								{
									"include": "#generic-parameter-clause"
								}
							]
						},
						{
							"include": "#typealias-assignment"
						}
					]
				},
				"typealias-assignment": {
					"begin": "(=)\\s*",
					"beginCaptures": {
						"1": {
							"name": "keyword.operator.assignment.swift"
						}
					},
					"end": "(?!\\G)$|(?=;|//|/\\*|$)",
					"patterns": [
						{
							"include": "#available-types"
						}
					]
				},
				"typed-variable-declaration": {
					"begin": "(?x)\n\t\t\t\t\t\t\\b(?:(async)\\s+)?(let|var)\\b\\s+\n\t\t\t\t\t\t(?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>)\\s*\n\t\t\t\t\t\t:\n\t\t\t\t\t",
					"beginCaptures": {
						"1": {
							"name": "keyword.control.async.swift"
						},
						"2": {
							"name": "keyword.other.declaration-specifier.swift"
						}
					},
					"end": "(?=$|[={])",
					"patterns": [
						{
							"include": "#available-types"
						}
					]
				},
				"types-precedencegroup": {
					"patterns": [
						{
							"comment": "Precedence groups in the standard library",
							"match": "\\b(?:BitwiseShift|Assignment|RangeFormation|Casting|Addition|NilCoalescing|Comparison|LogicalConjunction|LogicalDisjunction|Default|Ternary|Multiplication|FunctionArrow)Precedence\\b",
							"name": "support.type.swift"
						}
					]
				}
			}
		},
		"expressions": {
			"patterns": [
				{
					"include": "#comments"
				},
				{
					"include": "#code-block"
				},
				{
					"include": "#attributes"
				},
				{
					"include": "#closure-parameter"
				},
				{
					"include": "#literals"
				},
				{
					"include": "#operators"
				},
				{
					"include": "#builtin-types"
				},
				{
					"include": "#builtin-functions"
				},
				{
					"include": "#builtin-global-functions"
				},
				{
					"include": "#builtin-properties"
				},
				{
					"include": "#compound-name"
				},
				{
					"include": "#keywords"
				},
				{
					"include": "#function-call-expression"
				},
				{
					"include": "#subscript-expression"
				},
				{
					"include": "#parenthesized-expression"
				},
				{
					"include": "#member-reference"
				},
				{
					"include": "#availability-condition"
				},
				{
					"match": "\\b_\\b",
					"name": "support.variable.discard-value.swift"
				}
			],
			"repository": {
				"availability-condition": {
					"begin": "\\B(#(?:un)?available)(\\()",
					"beginCaptures": {
						"1": {
							"name": "support.function.availability-condition.swift"
						},
						"2": {
							"name": "punctuation.definition.arguments.begin.swift"
						}
					},
					"end": "\\)",
					"endCaptures": {
						"0": {
							"name": "punctuation.definition.arguments.end.swift"
						}
					},
					"patterns": [
						{
							"captures": {
								"1": {
									"name": "keyword.other.platform.os.swift"
								},
								"2": {
									"name": "constant.numeric.swift"
								}
							},
							"match": "\\s*\\b((?:iOS|macOS|OSX|watchOS|tvOS|UIKitForMac)(?:ApplicationExtension)?)\\b(?:\\s+([0-9]+(?:\\.[0-9]+)*\\b))"
						},
						{
							"captures": {
								"1": {
									"name": "keyword.other.platform.all.swift"
								},
								"2": {
									"name": "invalid.illegal.character-not-allowed-here.swift"
								}
							},
							"match": "(\\*)\\s*(.*?)(?=[,)])"
						},
						{
							"match": "[^\\s,)]+",
							"name": "invalid.illegal.character-not-allowed-here.swift"
						}
					]
				},
				"closure-parameter": {
					"match": "\\$[0-9]+",
					"name": "variable.language.closure-parameter.swift"
				},
				"compound-name": {
					"captures": {
						"1": {
							"name": "entity.name.function.compound-name.swift"
						},
						"2": {
							"name": "punctuation.definition.entity.swift"
						},
						"3": {
							"name": "punctuation.definition.entity.swift"
						},
						"4": {
							"patterns": [
								{
									"captures": {
										"1": {
											"name": "punctuation.definition.entity.swift"
										},
										"2": {
											"name": "punctuation.definition.entity.swift"
										}
									},
									"match": "(?<q>`?)(?!_:)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>):",
									"name": "entity.name.function.compound-name.swift"
								}
							]
						}
					},
					"comment": "a reference to a function with disambiguating argument labels, such as foo(_:), foo(bar:), etc.",
					"match": "(?x)\n\t\t\t\t\t\t((?<q1>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q1>))       \t\t# function name\n\t\t\t\t\t\t\\(\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t((?<q2>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q2>)) \t# argument label\n\t\t\t\t\t\t\t\t\t:\t\t\t\t\t\t\t\t\t\t\t\t# colon\n\t\t\t\t\t\t\t\t)+\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\\)\n\t\t\t\t\t"
				},
				"expression-element-list": {
					"patterns": [
						{
							"include": "#comments"
						},
						{
							"begin": "((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*(:)",
							"beginCaptures": {
								"1": {
									"name": "support.function.any-method.swift"
								},
								"2": {
									"name": "punctuation.definition.identifier.swift"
								},
								"3": {
									"name": "punctuation.definition.identifier.swift"
								},
								"4": {
									"name": "punctuation.separator.argument-label.swift"
								}
							},
							"comment": "an element with a label",
							"end": "(?=[,)\\]])",
							"patterns": [
								{
									"include": "#expressions"
								}
							]
						},
						{
							"begin": "(?![,)\\]])(?=\\S)",
							"comment": "an element without a label (i.e. anything else)",
							"end": "(?=[,)\\]])",
							"patterns": [
								{
									"include": "#expressions"
								}
							]
						}
					]
				},
				"function-call-expression": {
					"patterns": [
						{
							"begin": "((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))\\s*(\\()",
							"beginCaptures": {
								"1": {
									"name": "support.function.any-method.swift"
								},
								"2": {
									"name": "punctuation.definition.identifier.swift"
								},
								"3": {
									"name": "punctuation.definition.identifier.swift"
								},
								"4": {
									"name": "punctuation.definition.arguments.begin.swift"
								}
							},
							"comment": "foo(args) -- a call whose callee is a highlightable name",
							"end": "\\)",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.arguments.end.swift"
								}
							},
							"name": "meta.function-call.swift",
							"patterns": [
								{
									"include": "#expression-element-list"
								}
							]
						},
						{
							"begin": "(?<=[`\\])}>\\p{L}_\\p{N}\\p{M}])\\s*(\\()",
							"beginCaptures": {
								"1": {
									"name": "punctuation.definition.arguments.begin.swift"
								}
							},
							"comment": "[Int](args) -- a call whose callee is a more complicated expression",
							"end": "\\)",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.arguments.end.swift"
								}
							},
							"name": "meta.function-call.swift",
							"patterns": [
								{
									"include": "#expression-element-list"
								}
							]
						}
					]
				},
				"member-reference": {
					"patterns": [
						{
							"captures": {
								"1": {
									"name": "variable.other.swift"
								},
								"2": {
									"name": "punctuation.definition.identifier.swift"
								},
								"3": {
									"name": "punctuation.definition.identifier.swift"
								}
							},
							"match": "(?<=\\.)((?<q>`?)[\\p{L}_][\\p{L}_\\p{N}\\p{M}]*(\\k<q>))"
						}
					]
				},
				"parenthesized-expression": {
					"begin": "\\(",
					"beginCaptures": {
						"0": {
							"name": "punctuation.section.tuple.begin.swift"
						}
					},
					"comment": "correctly matching closure expressions is too hard (depends on trailing \"in\") so we just tack on some basics to the end of parenthesized-expression",
					"end": "(\\))\\s*((?:\\b(?:async|throws|rethrows)\\s)*)",
					"endCaptures": {
						"1": {
							"name": "punctuation.section.tuple.end.swift"
						},
						"2": {
							"patterns": [
								{
									"match": "\\brethrows\\b",
									"name": "invalid.illegal.rethrows-only-allowed-on-function-declarations.swift"
								},
								{
									"include": "#async-throws"
								}
							]
						}
					},
					"patterns": [
						{
							"include": "#expression-element-list"
						}
					]
				},
				"subscript-expression": {
					"begin": "(?<=[`\\p{L}_\\p{N}\\p{M}])\\s*(\\[)",
					"beginCaptures": {
						"1": {
							"name": "punctuation.definition.arguments.begin.swift"
						}
					},
					"end": "\\]",
					"endCaptures": {
						"0": {
							"name": "punctuation.definition.arguments.end.swift"
						}
					},
					"name": "meta.subscript-expression.swift",
					"patterns": [
						{
							"include": "#expression-element-list"
						}
					]
				}
			}
		},
		"keywords": {
			"patterns": [
				{
					"match": "(?<!\\.)\\b(?:if|else|guard|where|switch|case|default|fallthrough)\\b",
					"name": "keyword.control.branch.swift"
				},
				{
					"match": "(?<!\\.)\\b(?:continue|break|fallthrough|return)\\b",
					"name": "keyword.control.transfer.swift"
				},
				{
					"match": "(?<!\\.)\\b(?:while|for|in)\\b",
					"name": "keyword.control.loop.swift"
				},
				{
					"captures": {
						"1": {
							"name": "keyword.control.loop.swift"
						},
						"2": {
							"name": "punctuation.whitespace.trailing.repeat.swift"
						}
					},
					"comment": "extra scopes for repeat-while snippet",
					"match": "(?<!\\.)\\b(repeat)\\b(\\s*)"
				},
				{
					"match": "(?<!\\.)\\bdefer\\b",
					"name": "keyword.control.defer.swift"
				},
				{
					"captures": {
						"1": {
							"name": "invalid.illegal.try-must-precede-await.swift"
						},
						"2": {
							"name": "keyword.control.await.swift"
						}
					},
					"match": "(?<!\\.)\\b(?:(await\\s+try)|(await)\\b)"
				},
				{
					"match": "(?<!\\.)\\b(?:catch|throws?|rethrows|try)\\b|\\btry[?!]\\B",
					"name": "keyword.control.exception.swift"
				},
				{
					"captures": {
						"1": {
							"name": "keyword.control.exception.swift"
						},
						"2": {
							"name": "punctuation.whitespace.trailing.do.swift"
						}
					},
					"comment": "extra scopes for do-catch snippet",
					"match": "(?<!\\.)\\b(do)\\b(\\s*)"
				},
				{
					"captures": {
						"1": {
							"name": "keyword.control.async.swift"
						},
						"2": {
							"name": "storage.modifier.swift"
						},
						"3": {
							"name": "keyword.other.declaration-specifier.swift"
						}
					},
					"match": "(?<!\\.)\\b(?:(?:(async)|(nonisolated))\\s+)?(let|var)\\b"
				},
				{
					"match": "(?<!\\.)\\b(?:associatedtype|operator|typealias)\\b",
					"name": "keyword.other.declaration-specifier.swift"
				},
				{
					"match": "(?<!\\.)\\b(class|enum|extension|precedencegroup|protocol|struct|actor)\\b",
					"name": "storage.type.$1.swift"
				},
				{
					"match": "(?<!\\.)\\b(?:inout|static|final|lazy|mutating|nonmutating|optional|indirect|required|override|dynamic|convenience|infix|prefix|postfix)\\b",
					"name": "storage.modifier.swift"
				},
				{
					"match": "\\binit[?!]|\\binit\\b|(?<!\\.)\\b(?:func|deinit|subscript|didSet|get|set|willSet)\\b",
					"name": "storage.type.function.swift"
				},
				{
					"match": "(?<!\\.)\\b(?:fileprivate|private|internal|public|open)\\b",
					"name": "keyword.other.declaration-specifier.accessibility.swift"
				},
				{
					"comment": "matches weak, unowned, unowned(safe), unowned(unsafe)",
					"match": "(?<!\\.)\\bunowned\\((?:safe|unsafe)\\)|(?<!\\.)\\b(?:weak|unowned)\\b",
					"name": "keyword.other.capture-specifier.swift"
				},
				{
					"captures": {
						"1": {
							"name": "keyword.operator.type.swift"
						},
						"2": {
							"name": "keyword.operator.type.metatype.swift"
						}
					},
					"match": "(?<=\\.)(?:(dynamicType|self)|(Protocol|Type))\\b"
				},
				{
					"match": "(?<!\\.)\\b(?:super|self|Self)\\b",
					"name": "variable.language.swift"
				},
				{
					"match": "\\B(?:#file|#filePath|#fileID|#line|#column|#function|#dsohandle)\\b|\\b(?:__FILE__|__LINE__|__COLUMN__|__FUNCTION__|__DSO_HANDLE__)\\b",
					"name": "support.variable.swift"
				},
				{
					"match": "(?<!\\.)\\bimport\\b",
					"name": "keyword.control.import.swift"
				}
			]
		},
		"literals": {
			"patterns": [
				{
					"include": "#boolean"
				},
				{
					"include": "#numeric"
				},
				{
					"include": "#string"
				},
				{
					"match": "\\bnil\\b",
					"name": "constant.language.nil.swift"
				},
				{
					"comment": "object \"literals\" used in playgrounds",
					"match": "\\B#(colorLiteral|imageLiteral|fileLiteral)\\b",
					"name": "support.function.object-literal.swift"
				},
				{
					"match": "\\B#keyPath\\b",
					"name": "support.function.key-path.swift"
				},
				{
					"begin": "\\B(#selector)(\\()(?:\\s*(getter|setter)\\s*(:))?",
					"beginCaptures": {
						"1": {
							"name": "support.function.selector-reference.swift"
						},
						"2": {
							"name": "punctuation.definition.arguments.begin.swift"
						},
						"3": {
							"name": "support.variable.parameter.swift"
						},
						"4": {
							"name": "punctuation.separator.argument-label.swift"
						}
					},
					"end": "\\)",
					"endCaptures": {
						"0": {
							"name": "punctuation.definition.arguments.end.swift"
						}
					},
					"patterns": [
						{
							"include": "#expressions"
						}
					]
				}
			],
			"repository": {
				"boolean": {
					"match": "\\b(true|false)\\b",
					"name": "constant.language.boolean.swift"
				},
				"numeric": {
					"patterns": [
						{
							"comment": "0.1, -4_2.5, 6.022e23, 10E-5",
							"match": "(\\B\\-|\\b)(?<![\\[\\](){}\\p{L}_\\p{N}\\p{M}]\\.)[0-9][0-9_]*(?=\\.[0-9]|[eE])(?:\\.[0-9][0-9_]*)?(?:[eE][-+]?[0-9][0-9_]*)?\\b(?!\\.[0-9])",
							"name": "constant.numeric.float.decimal.swift"
						},
						{
							"comment": "-0x1.ap2_3, 0x31p-4",
							"match": "(\\B\\-|\\b)(?<![\\[\\](){}\\p{L}_\\p{N}\\p{M}]\\.)(0x[0-9a-fA-F][0-9a-fA-F_]*)(?:\\.[0-9a-fA-F][0-9a-fA-F_]*)?[pP][-+]?[0-9][0-9_]*\\b(?!\\.[0-9])",
							"name": "constant.numeric.float.hexadecimal.swift"
						},
						{
							"comment": "0x1p, 0x1p_2, 0x1.5pa, 0x1.1p+1f, 0x1pz",
							"match": "(\\B\\-|\\b)(?<![\\[\\](){}\\p{L}_\\p{N}\\p{M}]\\.)(0x[0-9a-fA-F][0-9a-fA-F_]*)(?:\\.[0-9a-fA-F][0-9a-fA-F_]*)?(?:[pP][-+]?\\w*)\\b(?!\\.[0-9])",
							"name": "invalid.illegal.numeric.float.invalid-exponent.swift"
						},
						{
							"comment": "0x1.5w (note that 0x1.f may be a valid expression)",
							"match": "(\\B\\-|\\b)(?<![\\[\\](){}\\p{L}_\\p{N}\\p{M}]\\.)(0x[0-9a-fA-F][0-9a-fA-F_]*)\\.[0-9][\\w.]*",
							"name": "invalid.illegal.numeric.float.missing-exponent.swift"
						},
						{
							"comment": "-.5, .2f (note that 1.-.5 may be a valid expression)",
							"match": "(?<=\\s|^)\\-?\\.[0-9][\\w.]*",
							"name": "invalid.illegal.numeric.float.missing-leading-zero.swift"
						},
						{
							"comment": "0b_0_1, 0x_1p+3q",
							"match": "(\\B\\-|\\b)0[box]_[0-9a-fA-F_]*(?:[pPeE][+-]?\\w+)?[\\w.]+",
							"name": "invalid.illegal.numeric.leading-underscore.swift"
						},
						{
							"comment": "tuple positional member: not really a numeric literal, but not invalid",
							"match": "(?<=[\\[\\](){}\\p{L}_\\p{N}\\p{M}]\\.)[0-9]+\\b"
						},
						{
							"comment": "0b010, 0b1_0",
							"match": "(\\B\\-|\\b)(?<![\\[\\](){}\\p{L}_\\p{N}\\p{M}]\\.)0b[01][01_]*\\b(?!\\.[0-9])",
							"name": "constant.numeric.integer.binary.swift"
						},
						{
							"comment": "0o1, 0o7_3",
							"match": "(\\B\\-|\\b)(?<![\\[\\](){}\\p{L}_\\p{N}\\p{M}]\\.)0o[0-7][0-7_]*\\b(?!\\.[0-9])",
							"name": "constant.numeric.integer.octal.swift"
						},
						{
							"comment": "02, 3_456",
							"match": "(\\B\\-|\\b)(?<![\\[\\](){}\\p{L}_\\p{N}\\p{M}]\\.)[0-9][0-9_]*\\b(?!\\.[0-9])",
							"name": "constant.numeric.integer.decimal.swift"
						},
						{
							"comment": "0x4, 0xF_7",
							"match": "(\\B\\-|\\b)(?<![\\[\\](){}\\p{L}_\\p{N}\\p{M}]\\.)0x[0-9a-fA-F][0-9a-fA-F_]*\\b(?!\\.[0-9])",
							"name": "constant.numeric.integer.hexadecimal.swift"
						},
						{
							"match": "(\\B\\-|\\b)[0-9][\\w.]*",
							"name": "invalid.illegal.numeric.other.swift"
						}
					]
				},
				"string": {
					"patterns": [
						{
							"begin": "\"\"\"",
							"beginCaptures": {
								"0": {
									"name": "punctuation.definition.string.begin.swift"
								}
							},
							"comment": "SE-0168: Multi-Line String Literals",
							"end": "\"\"\"(#*)",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.string.end.swift"
								},
								"1": {
									"name": "invalid.illegal.extra-closing-delimiter.swift"
								}
							},
							"name": "string.quoted.double.block.swift",
							"patterns": [
								{
									"match": "\\G.+(?=\"\"\")|\\G.+",
									"name": "invalid.illegal.content-after-opening-delimiter.swift"
								},
								{
									"match": "\\\\\\s*\\n",
									"name": "constant.character.escape.newline.swift"
								},
								{
									"include": "#string-guts"
								},
								{
									"comment": "Allow \\(\"\"\"...\"\"\") to appear inside a block string",
									"match": "\\S((?!\\\\\\().)*(?=\"\"\")",
									"name": "invalid.illegal.content-before-closing-delimiter.swift"
								}
							]
						},
						{
							"begin": "#\"\"\"",
							"beginCaptures": {
								"0": {
									"name": "punctuation.definition.string.begin.swift"
								}
							},
							"end": "\"\"\"#(#*)",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.string.end.swift"
								},
								"1": {
									"name": "invalid.illegal.extra-closing-delimiter.swift"
								}
							},
							"name": "string.quoted.double.block.raw.swift",
							"patterns": [
								{
									"match": "\\G.+(?=\"\"\")|\\G.+",
									"name": "invalid.illegal.content-after-opening-delimiter.swift"
								},
								{
									"match": "\\\\#\\s*\\n",
									"name": "constant.character.escape.newline.swift"
								},
								{
									"include": "#raw-string-guts"
								},
								{
									"comment": "Allow \\(\"\"\"...\"\"\") to appear inside a block string",
									"match": "\\S((?!\\\\#\\().)*(?=\"\"\")",
									"name": "invalid.illegal.content-before-closing-delimiter.swift"
								}
							]
						},
						{
							"begin": "(##+)\"\"\"",
							"beginCaptures": {
								"0": {
									"name": "punctuation.definition.string.begin.swift"
								}
							},
							"end": "\"\"\"\\1(#*)",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.string.end.swift"
								},
								"1": {
									"name": "invalid.illegal.extra-closing-delimiter.swift"
								}
							},
							"name": "string.quoted.double.block.raw.swift",
							"patterns": [
								{
									"match": "\\G.+(?=\"\"\")|\\G.+",
									"name": "invalid.illegal.content-after-opening-delimiter.swift"
								}
							]
						},
						{
							"begin": "\"",
							"beginCaptures": {
								"0": {
									"name": "punctuation.definition.string.begin.swift"
								}
							},
							"end": "\"(#*)",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.string.end.swift"
								},
								"1": {
									"name": "invalid.illegal.extra-closing-delimiter.swift"
								}
							},
							"name": "string.quoted.double.single-line.swift",
							"patterns": [
								{
									"match": "\\r|\\n",
									"name": "invalid.illegal.returns-not-allowed.swift"
								},
								{
									"include": "#string-guts"
								}
							]
						},
						{
							"begin": "(##+)\"",
							"beginCaptures": {
								"0": {
									"name": "punctuation.definition.string.begin.raw.swift"
								}
							},
							"comment": "SE-0168: raw string literals (more than one #, grammar limitations prevent us from supporting escapes)",
							"end": "\"\\1(#*)",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.string.end.raw.swift"
								},
								"1": {
									"name": "invalid.illegal.extra-closing-delimiter.swift"
								}
							},
							"name": "string.quoted.double.single-line.raw.swift",
							"patterns": [
								{
									"match": "\\r|\\n",
									"name": "invalid.illegal.returns-not-allowed.swift"
								}
							]
						},
						{
							"begin": "#\"",
							"beginCaptures": {
								"0": {
									"name": "punctuation.definition.string.begin.raw.swift"
								}
							},
							"comment": "SE-0168: raw string literals (one #, escapes supported)",
							"end": "\"#(#*)",
							"endCaptures": {
								"0": {
									"name": "punctuation.definition.string.end.raw.swift"
								},
								"1": {
									"name": "invalid.illegal.extra-closing-delimiter.swift"
								}
							},
							"name": "string.quoted.double.single-line.raw.swift",
							"patterns": [
								{
									"match": "\\r|\\n",
									"name": "invalid.illegal.returns-not-allowed.swift"
								},
								{
									"include": "#raw-string-guts"
								}
							]
						}
					],
					"repository": {
						"raw-string-guts": {
							"comment": "the same as #string-guts but with # in escapes",
							"patterns": [
								{
									"match": "\\\\#[0\\\\tnr\"']",
									"name": "constant.character.escape.swift"
								},
								{
									"match": "\\\\#u\\{[0-9a-fA-F]{1,8}\\}",
									"name": "constant.character.escape.unicode.swift"
								},
								{
									"begin": "\\\\#\\(",
									"beginCaptures": {
										"0": {
											"name": "punctuation.section.embedded.begin.swift"
										}
									},
									"contentName": "source.swift",
									"end": "(\\))",
									"endCaptures": {
										"0": {
											"name": "punctuation.section.embedded.end.swift"
										},
										"1": {
											"name": "source.swift"
										}
									},
									"name": "meta.embedded.line.swift",
									"patterns": [
										{
											"include": "$self"
										},
										{
											"begin": "\\(",
											"comment": "Nested parens",
											"end": "\\)"
										}
									]
								},
								{
									"match": "\\\\#.",
									"name": "invalid.illegal.escape-not-recognized"
								}
							]
						},
						"string-guts": {
							"patterns": [
								{
									"match": "\\\\[0\\\\tnr\"']",
									"name": "constant.character.escape.swift"
								},
								{
									"match": "\\\\u\\{[0-9a-fA-F]{1,8}\\}",
									"name": "constant.character.escape.unicode.swift"
								},
								{
									"begin": "\\\\\\(",
									"beginCaptures": {
										"0": {
											"name": "punctuation.section.embedded.begin.swift"
										}
									},
									"contentName": "source.swift",
									"end": "(\\))",
									"endCaptures": {
										"0": {
											"name": "punctuation.section.embedded.end.swift"
										},
										"1": {
											"name": "source.swift"
										}
									},
									"name": "meta.embedded.line.swift",
									"patterns": [
										{
											"include": "$self"
										},
										{
											"begin": "\\(",
											"comment": "Nested parens",
											"end": "\\)"
										}
									]
								},
								{
									"match": "\\\\.",
									"name": "invalid.illegal.escape-not-recognized"
								}
							]
						}
					}
				}
			}
		},
		"operators": {
			"patterns": [
				{
					"comment": "Type casting",
					"match": "\\b(is\\b|as([!?]\\B|\\b))",
					"name": "keyword.operator.type-casting.swift"
				},
				{
					"begin": "(?x)\n\t\t\t\t\t\t(?=\n\t\t\t\t\t\t\t(?<oph>\t\t\t\t\t\t\t\t# operator-head\n\t\t\t\t\t\t\t\t[/=\\-+!*%<>&|^~?]\n\t\t\t\t\t\t\t  | [\\x{00A1}-\\x{00A7}]\n\t\t\t\t\t\t\t  | [\\x{00A9}\\x{00AB}]\n\t\t\t\t\t\t\t  | [\\x{00AC}\\x{00AE}]\n\t\t\t\t\t\t\t  | [\\x{00B0}-\\x{00B1}\\x{00B6}\\x{00BB}\\x{00BF}\\x{00D7}\\x{00F7}]\n\t\t\t\t\t\t\t  | [\\x{2016}-\\x{2017}\\x{2020}-\\x{2027}]\n\t\t\t\t\t\t\t  | [\\x{2030}-\\x{203E}]\n\t\t\t\t\t\t\t  | [\\x{2041}-\\x{2053}]\n\t\t\t\t\t\t\t  | [\\x{2055}-\\x{205E}]\n\t\t\t\t\t\t\t  | [\\x{2190}-\\x{23FF}]\n\t\t\t\t\t\t\t  | [\\x{2500}-\\x{2775}]\n\t\t\t\t\t\t\t  | [\\x{2794}-\\x{2BFF}]\n\t\t\t\t\t\t\t  | [\\x{2E00}-\\x{2E7F}]\n\t\t\t\t\t\t\t  | [\\x{3001}-\\x{3003}]\n\t\t\t\t\t\t\t  | [\\x{3008}-\\x{3030}]\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t  | \\.\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\\g<oph>\t\t\t\t\t\t\t# operator-head\n\t\t\t\t\t\t\t  | \\.\n\t\t\t\t\t\t\t  | [\\x{0300}-\\x{036F}]\t\t\t\t# operator-character\n\t\t\t\t\t\t\t  | [\\x{1DC0}-\\x{1DFF}]\n\t\t\t\t\t\t\t  | [\\x{20D0}-\\x{20FF}]\n\t\t\t\t\t\t\t  | [\\x{FE00}-\\x{FE0F}]\n\t\t\t\t\t\t\t  | [\\x{FE20}-\\x{FE2F}]\n\t\t\t\t\t\t\t  | [\\x{E0100}-\\x{E01EF}]\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t",
					"comment": "This rule helps us speed up the matching.",
					"end": "(?!\\G)",
					"patterns": [
						{
							"captures": {
								"0": {
									"patterns": [
										{
											"match": "\\G(\\+\\+|\\-\\-)$",
											"name": "keyword.operator.increment-or-decrement.swift"
										},
										{
											"match": "\\G(\\+|\\-)$",
											"name": "keyword.operator.arithmetic.unary.swift"
										},
										{
											"match": "\\G!$",
											"name": "keyword.operator.logical.not.swift"
										},
										{
											"match": "\\G~$",
											"name": "keyword.operator.bitwise.not.swift"
										},
										{
											"match": ".+",
											"name": "keyword.operator.custom.prefix.swift"
										}
									]
								}
							},
							"comment": "Prefix unary operator",
							"match": "(?x)\n\t\t\t\t\t\t\t\t\\G\t\t\t\t\t\t\t\t\t\t# Matching from the beginning ensures\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# that we start with operator-head\n\t\t\t\t\t\t\t\t(?<=^|[\\s(\\[{,;:])\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t(?!(//|/\\*|\\*/))\n\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t[/=\\-+!*%<>&|^~?]\t\t\t\t# operator-head\n\t\t\t\t\t\t\t\t\t  | [\\x{00A1}-\\x{00A7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00A9}\\x{00AB}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00AC}\\x{00AE}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00B0}-\\x{00B1}\\x{00B6}\\x{00BB}\\x{00BF}\\x{00D7}\\x{00F7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2016}-\\x{2017}\\x{2020}-\\x{2027}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2030}-\\x{203E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2041}-\\x{2053}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2055}-\\x{205E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2190}-\\x{23FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2500}-\\x{2775}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2794}-\\x{2BFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2E00}-\\x{2E7F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3001}-\\x{3003}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3008}-\\x{3030}]\n\t\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t\t  | [\\x{0300}-\\x{036F}]\t\t\t\t# operator-character\n\t\t\t\t\t\t\t\t\t  | [\\x{1DC0}-\\x{1DFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{20D0}-\\x{20FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE00}-\\x{FE0F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE20}-\\x{FE2F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{E0100}-\\x{E01EF}]\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)++\n\t\t\t\t\t\t\t\t(?![\\s)\\]},;:]|\\z)\n\t\t\t\t\t\t\t"
						},
						{
							"captures": {
								"0": {
									"patterns": [
										{
											"match": "\\G(\\+\\+|\\-\\-)$",
											"name": "keyword.operator.increment-or-decrement.swift"
										},
										{
											"match": "\\G!$",
											"name": "keyword.operator.increment-or-decrement.swift"
										},
										{
											"match": ".+",
											"name": "keyword.operator.custom.postfix.swift"
										}
									]
								}
							},
							"comment": "Postfix unary operator",
							"match": "(?x)\n\t\t\t\t\t\t\t\t\\G\t\t\t\t\t\t\t\t\t\t# Matching from the beginning ensures\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# that we start with operator-head\n\t\t\t\t\t\t\t\t(?<!^|[\\s(\\[{,;:])\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t(?!(//|/\\*|\\*/))\n\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t[/=\\-+!*%<>&|^~?]\t\t\t\t# operator-head\n\t\t\t\t\t\t\t\t\t  | [\\x{00A1}-\\x{00A7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00A9}\\x{00AB}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00AC}\\x{00AE}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00B0}-\\x{00B1}\\x{00B6}\\x{00BB}\\x{00BF}\\x{00D7}\\x{00F7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2016}-\\x{2017}\\x{2020}-\\x{2027}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2030}-\\x{203E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2041}-\\x{2053}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2055}-\\x{205E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2190}-\\x{23FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2500}-\\x{2775}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2794}-\\x{2BFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2E00}-\\x{2E7F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3001}-\\x{3003}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3008}-\\x{3030}]\n\t\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t\t  | [\\x{0300}-\\x{036F}]\t\t\t\t# operator-character\n\t\t\t\t\t\t\t\t\t  | [\\x{1DC0}-\\x{1DFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{20D0}-\\x{20FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE00}-\\x{FE0F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE20}-\\x{FE2F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{E0100}-\\x{E01EF}]\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)++\n\t\t\t\t\t\t\t\t(?=[\\s)\\]},;:]|\\z)\n\t\t\t\t\t\t\t"
						},
						{
							"captures": {
								"0": {
									"patterns": [
										{
											"match": "\\G=$",
											"name": "keyword.operator.assignment.swift"
										},
										{
											"match": "\\G(\\+|\\-|\\*|/|%|<<|>>|&|\\^|\\||&&|\\|\\|)=$",
											"name": "keyword.operator.assignment.compound.swift"
										},
										{
											"match": "\\G(\\+|\\-|\\*|/)$",
											"name": "keyword.operator.arithmetic.swift"
										},
										{
											"match": "\\G&(\\+|\\-|\\*)$",
											"name": "keyword.operator.arithmetic.overflow.swift"
										},
										{
											"match": "\\G%$",
											"name": "keyword.operator.arithmetic.remainder.swift"
										},
										{
											"match": "\\G(==|!=|>|<|>=|<=|~=)$",
											"name": "keyword.operator.comparison.swift"
										},
										{
											"match": "\\G\\?\\?$",
											"name": "keyword.operator.coalescing.swift"
										},
										{
											"match": "\\G(&&|\\|\\|)$",
											"name": "keyword.operator.logical.swift"
										},
										{
											"match": "\\G(&|\\||\\^|<<|>>)$",
											"name": "keyword.operator.bitwise.swift"
										},
										{
											"match": "\\G(===|!==)$",
											"name": "keyword.operator.bitwise.swift"
										},
										{
											"match": "\\G\\?$",
											"name": "keyword.operator.ternary.swift"
										},
										{
											"match": ".+",
											"name": "keyword.operator.custom.infix.swift"
										}
									]
								}
							},
							"comment": "Infix operator",
							"match": "(?x)\n\t\t\t\t\t\t\t\t\\G\t\t\t\t\t\t\t\t\t\t# Matching from the beginning ensures\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# that we start with operator-head\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t(?!(//|/\\*|\\*/))\n\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t[/=\\-+!*%<>&|^~?]\t\t\t\t# operator-head\n\t\t\t\t\t\t\t\t\t  | [\\x{00A1}-\\x{00A7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00A9}\\x{00AB}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00AC}\\x{00AE}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00B0}-\\x{00B1}\\x{00B6}\\x{00BB}\\x{00BF}\\x{00D7}\\x{00F7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2016}-\\x{2017}\\x{2020}-\\x{2027}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2030}-\\x{203E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2041}-\\x{2053}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2055}-\\x{205E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2190}-\\x{23FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2500}-\\x{2775}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2794}-\\x{2BFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2E00}-\\x{2E7F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3001}-\\x{3003}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3008}-\\x{3030}]\n\t\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t\t  | [\\x{0300}-\\x{036F}]\t\t\t\t# operator-character\n\t\t\t\t\t\t\t\t\t  | [\\x{1DC0}-\\x{1DFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{20D0}-\\x{20FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE00}-\\x{FE0F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE20}-\\x{FE2F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{E0100}-\\x{E01EF}]\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)++\n\t\t\t\t\t\t\t"
						},
						{
							"captures": {
								"0": {
									"patterns": [
										{
											"match": ".+",
											"name": "keyword.operator.custom.prefix.dot.swift"
										}
									]
								}
							},
							"comment": "Dot prefix unary operator",
							"match": "(?x)\n\t\t\t\t\t\t\t\t\\G\t\t\t\t\t\t\t\t\t\t# Matching from the beginning ensures\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# that we start with operator-head\n\t\t\t\t\t\t\t\t(?<=^|[\\s(\\[{,;:])\n\t\t\t\t\t\t\t\t\\.\t\t\t\t\t\t\t\t\t\t# dot\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t(?!(//|/\\*|\\*/))\n\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\\.\t\t\t\t\t\t\t\t# dot\n\t\t\t\t\t\t\t\t\t  | [/=\\-+!*%<>&|^~?]\t\t\t\t# operator-head\n\t\t\t\t\t\t\t\t\t  | [\\x{00A1}-\\x{00A7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00A9}\\x{00AB}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00AC}\\x{00AE}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00B0}-\\x{00B1}\\x{00B6}\\x{00BB}\\x{00BF}\\x{00D7}\\x{00F7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2016}-\\x{2017}\\x{2020}-\\x{2027}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2030}-\\x{203E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2041}-\\x{2053}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2055}-\\x{205E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2190}-\\x{23FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2500}-\\x{2775}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2794}-\\x{2BFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2E00}-\\x{2E7F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3001}-\\x{3003}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3008}-\\x{3030}]\n\t\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t\t  | [\\x{0300}-\\x{036F}]\t\t\t\t# operator-character\n\t\t\t\t\t\t\t\t\t  | [\\x{1DC0}-\\x{1DFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{20D0}-\\x{20FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE00}-\\x{FE0F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE20}-\\x{FE2F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{E0100}-\\x{E01EF}]\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)++\n\t\t\t\t\t\t\t\t(?![\\s)\\]},;:]|\\z)\n\t\t\t\t\t\t\t"
						},
						{
							"captures": {
								"0": {
									"patterns": [
										{
											"match": ".+",
											"name": "keyword.operator.custom.postfix.dot.swift"
										}
									]
								}
							},
							"comment": "Dot postfix unary operator",
							"match": "(?x)\n\t\t\t\t\t\t\t\t\\G\t\t\t\t\t\t\t\t\t\t# Matching from the beginning ensures\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# that we start with operator-head\n\t\t\t\t\t\t\t\t(?<!^|[\\s(\\[{,;:])\n\t\t\t\t\t\t\t\t\\.\t\t\t\t\t\t\t\t\t\t# dot\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t(?!(//|/\\*|\\*/))\n\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\\.\t\t\t\t\t\t\t\t# dot\n\t\t\t\t\t\t\t\t\t  | [/=\\-+!*%<>&|^~?]\t\t\t\t# operator-head\n\t\t\t\t\t\t\t\t\t  | [\\x{00A1}-\\x{00A7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00A9}\\x{00AB}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00AC}\\x{00AE}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00B0}-\\x{00B1}\\x{00B6}\\x{00BB}\\x{00BF}\\x{00D7}\\x{00F7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2016}-\\x{2017}\\x{2020}-\\x{2027}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2030}-\\x{203E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2041}-\\x{2053}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2055}-\\x{205E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2190}-\\x{23FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2500}-\\x{2775}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2794}-\\x{2BFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2E00}-\\x{2E7F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3001}-\\x{3003}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3008}-\\x{3030}]\n\t\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t\t  | [\\x{0300}-\\x{036F}]\t\t\t\t# operator-character\n\t\t\t\t\t\t\t\t\t  | [\\x{1DC0}-\\x{1DFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{20D0}-\\x{20FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE00}-\\x{FE0F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE20}-\\x{FE2F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{E0100}-\\x{E01EF}]\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)++\n\t\t\t\t\t\t\t\t(?=[\\s)\\]},;:]|\\z)\n\t\t\t\t\t\t\t"
						},
						{
							"captures": {
								"0": {
									"patterns": [
										{
											"match": "\\G\\.\\.[.<]$",
											"name": "keyword.operator.range.swift"
										},
										{
											"match": ".+",
											"name": "keyword.operator.custom.infix.dot.swift"
										}
									]
								}
							},
							"comment": "Dot infix operator",
							"match": "(?x)\n\t\t\t\t\t\t\t\t\\G\t\t\t\t\t\t\t\t\t\t# Matching from the beginning ensures\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t# that we start with operator-head\n\t\t\t\t\t\t\t\t\\.\t\t\t\t\t\t\t\t\t\t# dot\n\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t(?!(//|/\\*|\\*/))\n\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\\.\t\t\t\t\t\t\t\t# dot\n\t\t\t\t\t\t\t\t\t  | [/=\\-+!*%<>&|^~?]\t\t\t\t# operator-head\n\t\t\t\t\t\t\t\t\t  | [\\x{00A1}-\\x{00A7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00A9}\\x{00AB}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00AC}\\x{00AE}]\n\t\t\t\t\t\t\t\t\t  | [\\x{00B0}-\\x{00B1}\\x{00B6}\\x{00BB}\\x{00BF}\\x{00D7}\\x{00F7}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2016}-\\x{2017}\\x{2020}-\\x{2027}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2030}-\\x{203E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2041}-\\x{2053}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2055}-\\x{205E}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2190}-\\x{23FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2500}-\\x{2775}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2794}-\\x{2BFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{2E00}-\\x{2E7F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3001}-\\x{3003}]\n\t\t\t\t\t\t\t\t\t  | [\\x{3008}-\\x{3030}]\n\t\t\t\t\t\t\t\t  \n\t\t\t\t\t\t\t\t\t  | [\\x{0300}-\\x{036F}]\t\t\t\t# operator-character\n\t\t\t\t\t\t\t\t\t  | [\\x{1DC0}-\\x{1DFF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{20D0}-\\x{20FF}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE00}-\\x{FE0F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{FE20}-\\x{FE2F}]\n\t\t\t\t\t\t\t\t\t  | [\\x{E0100}-\\x{E01EF}]\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)++\n\t\t\t\t\t\t\t"
						}
					]
				},
				{
					"match": ":",
					"name": "keyword.operator.ternary.swift"
				}
			]
		},
		"root": {
			"patterns": [
				{
					"include": "#compiler-control"
				},
				{
					"include": "#declarations"
				},
				{
					"include": "#expressions"
				}
			]
		}
	}
}