Swift Next
Swift syntax package in async/await era, with extra features, for Sublime Text.
Details
Installs
- Total 965
- Win 115
- Mac 777
- Linux 73
Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 2 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Mac | 1 | 4 | 2 | 3 | 1 | 3 | 3 | 2 | 2 | 0 | 2 | 2 | 2 | 6 | 2 | 3 | 3 | 0 | 1 | 0 | 2 | 4 | 1 | 3 | 4 | 1 | 2 | 3 | 0 | 2 | 0 | 0 | 2 | 1 | 3 | 4 | 5 | 2 | 1 | 2 | 3 | 3 | 3 | 3 | 0 | 2 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
Swift Next
Swift syntax package in async/await era
[!IMPORTANT] This is the fork of the Swift-Next repository that appears to have been deprecated for some time. The purpose of it's twofold: to serve as the source of the package for the ST package control tool and to provide a space for community contribution. All of the incredible work on this project (with the exception of a few minor bug fixes) was done by @aerobounce. If you are able to contact him, please do so to allow him to take ownership of this organization. It is unfair that he stopped just before reaching the finish line in his long journey of success.
Features
- Swift 5.6 support
- Older Swift versions (deprecated or retired syntax) are not supported, and not in plan.
- Supports Documentation Comment Syntax
- Supports
MARK:
TODO:
FIXME:
- Xcode-style Symbol List
- Compatible with the new regex engine of Sublime Text
Status
- [ ] Finish visual test against all the swift files in apple/swift repository
- [x]
swift-5.6-RELEASE/benchmark
- [x]
swift-5.6-RELEASE/libswift
- [x]
- [ ] Resolve TODOs left in files
- [ ] Squash corner cases that scope goes wrong
- [ ] Remove commented matches left for debugging purpose
- [ ] Add tests
- [ ] Add build system (if cross-platform is possible?)
- [ ] Support swift-5.7-RELEASE
- [x] Better documentation markup support
Install
Package Control
- Install the Sublime Text Package Control plugin if you haven't done this before.
- Open the command palette and type Package Control: Install Package.
- Type OpenAI and press Enter.
Manually
- Download this repository
- Move extracted directory into: Sublime Text → Preferences → Browse Packages… → “User” directory
Development
Editing Environment
- Sublime Text 4
- PackageDev
- SublimeLinter-contrib-sublime-syntax
- LSP-yaml
- LSP-json
- Formatted with LSP-yaml and LSP-json
Tips
Minimize multiple words into a regex pattern
$ grex --no-anchors --capture-groups ...
References
If you are to create a syntax definition file for the first time without deep regex background like me, here's everything you need.
Sublime Text
- Sublime Text — Syntax Definitions
- Sublime Text — Scope Naming
- Sublime Text Community Documentation
- sublimehq/Packages
- sublimehq/Packages — Syntax Development Tips/Advice #757
Regular Expression
Swift
- apple/swift
- The Swift Programming Language
- Swift Standard Library
.swiftinterface
files in:/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/swift
- DougGregor/swift-concurrency-objc
- textmate/swift.tmbundle
- wbond/swift-for-sublime (
floating-point-literal
andstring-literal
are modified version of this package 🙏) - GregoryBL/SwiftSyntax
Other Fundamental Packages for Swift
License
- MIT