Skip to content

Commit

Permalink
Add visionOS (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur authored Jun 11, 2024
1 parent d13e3fb commit 860efac
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Swift.tmLanguage.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Swift.tmLanguage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repository:
endCaptures:
0: { name: punctuation.definition.arguments.end.swift }
patterns:
- match: \b(swift|(?:iOS|macOS|OSX|watchOS|tvOS|UIKitForMac)(?:ApplicationExtension)?)\b(?:\s+([0-9]+(?:\.[0-9]+)*\b))?
- match: \b(swift|(?:iOS|macOS|OSX|watchOS|tvOS|visionOS|UIKitForMac)(?:ApplicationExtension)?)\b(?:\s+([0-9]+(?:\.[0-9]+)*\b))?
captures:
1: { name: keyword.other.platform.os.swift }
2: { name: constant.numeric.swift }
Expand Down Expand Up @@ -325,7 +325,7 @@ repository:
3: { name: support.constant.platform.architecture.swift }
4: { name: punctuation.definition.parameters.end.swift }

- match: \b(os)\s*(\()\s*(?:(macOS|OSX|iOS|tvOS|watchOS|Android|Linux|FreeBSD|Windows|PS4)|\w+)\s*(\))
- match: \b(os)\s*(\()\s*(?:(macOS|OSX|iOS|tvOS|watchOS|visionOS|Android|Linux|FreeBSD|Windows|PS4)|\w+)\s*(\))
captures:
1: { name: keyword.other.condition.swift }
2: { name: punctuation.definition.parameters.begin.swift }
Expand Down Expand Up @@ -1514,7 +1514,7 @@ repository:
endCaptures:
0: { name: punctuation.definition.arguments.end.swift }
patterns:
- match: \s*\b((?:iOS|macOS|OSX|watchOS|tvOS|UIKitForMac)(?:ApplicationExtension)?)\b(?:\s+([0-9]+(?:\.[0-9]+)*\b))
- match: \s*\b((?:iOS|macOS|OSX|watchOS|tvOS|visionOS|UIKitForMac)(?:ApplicationExtension)?)\b(?:\s+([0-9]+(?:\.[0-9]+)*\b))
captures:
1: { name: keyword.other.platform.os.swift }
2: { name: constant.numeric.swift }
Expand Down
6 changes: 3 additions & 3 deletions Syntaxes/Swift.tmLanguage

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion grammar-test.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ __FILE__, __LINE__, __FUNCTION__, __DSO_HANDLE__
// MARK: Attributes

@available(
macOS 1.2, macOSApplicationExtension 1.2, OSX, tvOS 1.4, iOS, watchOS,
macOS 1.2, macOSApplicationExtension 1.2, OSX, tvOS 1.4, iOS, watchOS, visionOS,
swift 5, UIKitForMac,
noasync,
introduced, introduced: 1,
Expand Down

0 comments on commit 860efac

Please sign in to comment.