-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Context
- This issue is not a bug report. (please use a different template for reporting a bug)
- This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
Syntax coloring specifications for Swift (swift.ts) are out of date and appear to be from Swift 4 (the most recent version is 5.5). For example, here is a short list of keywords not indexed:
@differentiable(reverse)async@escaping@inlinableawaitassociatedtype@uncheckedrethrows
A list of language keywords can be found here, although the keywords that start with @ are not listed. There are numerous @ keywords, and it isn't feasible to include all of the ones starting with underscores. However, the ones that start with alphabetic characters should be possible to tabulate.
Monaco is the engine behind Google Colab's syntax coloring, and I am concerned because my effort to revive Swift support is negatively impacted by incorrect syntax coloring. Colab is currently restricted to Monaco 0.27.0, so it won't benefit from this correction immediately (the currently version is 0.31.0). Since 0.27.0 was released a few months ago, I expect Google to update to a newer version in the time frame of a few months.