Skip to content

Releases: JohnSundell/Splash

Splash 0.7.1

17 Jul 09:05
370f685
Compare
Choose a tag to compare

Syntax highlighting has been corrected in the following scenarios:

  • When shorthand closure arguments ($0, $1, etc.) are interpolated into a string literal.
  • For types and functions which names has a leading underscore.

Splash 0.7.0

18 Jun 11:38
c582abf
Compare
Choose a tag to compare
  • Splash can now be compiled as a Swift Package for iOS+tvOS using Xcode 11.
  • Added support for Swift 5.1's new some keyword.
  • #available checks are now correctly highlighted.

Splash 0.6.0

13 May 09:27
ec13df1
Compare
Choose a tag to compare

This version of Splash migrates the installation script to the Swift 5 toolchain, and fixes highlighting in the following scenarios:

  • When using closure argument shorthands, such as $0, $1, etc.
  • When using the inout keyword with a closure argument.
  • When returning a generic type from a function.

Splash 0.5.0

31 Mar 20:53
2b9e65e
Compare
Choose a tag to compare
  • Splash is now implemented using Swift 5.
  • Highlighting has been corrected for keywords used as parameter labels for generic functions.
  • Highlighting has been corrected for key paths passed as arguments to functions.

Splash 0.4.1

24 Mar 10:47
b9177c4
Compare
Choose a tag to compare

Fixed highlighting for nested @escaping closures.

Splash 0.4.0

16 Mar 16:46
72837ce
Compare
Choose a tag to compare
  • Support for the rethrows keyword (thanks @marcocapano!)
  • Fixed documentation for TokenType.keyword (thanks @warren-gavin!)
  • Generic parameters (such as Array<T>) within generic functions are now highlighted correctly.
  • The root level of a key path literal (\.property) is now highlighted correctly.

This release also includes a new command line tool - SplashMarkdown, which enables automatic HTML conversion and Splash decoration of all code blocks within a Markdown file.

Splash 0.3.0

12 Mar 00:12
43f163b
Compare
Choose a tag to compare
  • Added support for Swift 5 raw strings (both single-line and multi-line).
  • HTML output is now much more compact, and merges <span>s for tokens of the same type.
  • Multi-line comments with two asterisks (documentation-style) are now supported (thanks @MaciejGad, @marcocapano and @warren-gavin).
  • The dynamic and nonmutating keywords are now supported (thanks @marcocapano).

Splash 0.2.0

09 Mar 22:13
e4718f3
Compare
Choose a tag to compare

Splash now uses Swift 4.2. Keep using older versions for Swift 4.1 support.

Splash:

  • Added support for the inout, continue, fallthrough, indirect, deinit, is, while and repeat keywords (thanks @marcocapano!)
  • Added support for custom token types.
  • SwiftGrammar can now more easily be extended.
  • .init() is no longer treated as an enum.
  • Keywords used as function names are no longer treated as keywords.
  • Highlighting is now correct for types conforming to multiple protocols.
  • Associated types are now correctly highlighted.
  • Setters with an explicit access level are now highlighted as keywords.
  • The XCTAssert family of functions are now highlighted as functions, rather than types.
  • switch statements using nil pattern matching are now correctly highlighted.
  • Functions using argument pre-processors are now correctly highlighted.
  • Bool values passed to arguments without an external parameter label are now correctly highlighted.

SplashImageGen:

  • Added support for specifying a background color (thanks @MaciejGad!)

Splash 0.1.4

28 Aug 21:33
Compare
Choose a tag to compare

defer is now correctly treated as a keyword (thanks @hotogwc!)

Splash 0.1.3

27 Aug 17:21
1559117
Compare
Choose a tag to compare

Syntax highlighting has been fixed for the following scenarios:

  • Enums used as subscripting keys: dictionary[.case]
  • Subscript declarations: subscript(key: Key) -> Value?
  • Keywords used as parameter labels: key(for object: Object) -> String
  • Using self to refer to a type: String.self