Releases: JohnSundell/Splash
Releases · JohnSundell/Splash
Splash 0.7.1
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
- 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
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
- 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
Fixed highlighting for nested @escaping
closures.
Splash 0.4.0
- 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
- 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
andnonmutating
keywords are now supported (thanks @marcocapano).
Splash 0.2.0
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
andrepeat
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 usingnil
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
defer
is now correctly treated as a keyword (thanks @hotogwc!)
Splash 0.1.3
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