ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Swift Next

by Swift-Next ST4

Swift syntax package in async/await era, with extra features, for Sublime Text.

Details

Installs

  • Total 522
  • Win 73
  • Mac 404
  • Linux 45
Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26
Windows 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 3 2 0 0 1 0 1 0 0 0 1 0 0 0 0
Mac 1 0 1 1 2 2 2 1 1 3 0 0 1 2 4 1 1 3 1 3 3 1 3 2 1 3 3 0 3 0 0 2 2 1 1 3 1 0 3 3 1 1 7 2 1 2
Linux 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 1 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 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
  • [ ] 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

  1. Install the Sublime Text Package Control plugin if you haven't done this before.
  2. Open the command palette and type Package Control: Install Package.
  3. Type OpenAI and press Enter.

Manually

  1. Download this repository
  2. Move extracted directory into: Sublime Text → Preferences → Browse Packages… → “User” directory

Development

Editing Environment

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

Regular Expression

Swift

Other Fundamental Packages for Swift

License

  • MIT