Splash 0.8.0
New APIs
Grammar
now has a method calledisDelimiter(mergableWith:)
, which is optional to adopt, and allows each grammar to tweak whether two delimiters should be merged into a single token when evaluated.
Fixes
- The
convenience
keyword is now supported. MarkdownDecorator
no longer hard-codes line breaks within the HTML code blocks that it generates (which is also true for thesplashmarkdown
command line tool, since it uses that same decoration code).- APIs called using dot syntax are now only highlighted as
dotAccess
when there are no associated values or parameters passed. So.someCase
will be highlighted asdotAccess
, while.someCall()
won't. This is to make static APIs called using dot access highlighted in a more accurate way. - Highlighting for strings containing interpolation has now been made a lot more robust, especially for strings that contain punctuation and other delimiter-like characters.
- Fixed a bug that could cause a type following a comment ending with a punctuation character to not be highlighted correctly.
- Comments that start with a delimiter are now highlighted correctly.