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 210
  • Win 25
  • Mac 170
  • Linux 15
Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16
Windows 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 2 0 1 0 0 0 1 0 0 2 0
Mac 1 3 1 1 1 3 0 4 4 2 0 3 2 1 1 5 1 0 2 5 3 3 1 1 0 1 0 2 3 4 0 0 2 1 2 3 2 1 0 3 1 2 4 2 1 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 2 1 0 0 0 0 0 0 0 1 0 0 0 0 0 2 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
  • [ ] 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