Skip to content

Releases: swift-emacs/swift-mode

Fix which-function-mode hang

22 Feb 10:37
Compare
Choose a tag to compare

This is a bug fix release.

Fixes which-function-mode hang when running swift-mode:current-defun-name in a non swift-mode buffer.

This affected users who have which-function-mode enabled globally.

Add current-defun-name

25 Jan 07:30
Compare
Choose a tag to compare

which-function-mode and add-change-log-entry work as expected now.

Fixes handling of unmatched parenthesis.

Fix beginning/end-of-sentence

29 Dec 07:21
Compare
Choose a tag to compare

Added tests and fixed beginning/end-of-sentence.

Sentences, comments, and defuns

03 Dec 07:23
Compare
Choose a tag to compare

Added beginning-of/end-of/mark/narrow-to/kill-sentence. A sentence is a statement outside strings or comments. Inside strings or comments, it indicates ordinal sentence.

Handling of comments and defuns are improved. Declarations other than functions are now defun.

Improved comments and defuns

18 Sep 07:58
Compare
Choose a tag to compare

Added comment style option.

Now we can choose multiline comment styles.

Java style:

/**
 * Foo
 * Bar
 */

Swift Quick Help style:

/**
 Foo
 Bar
 */

https://developer.apple.com/library/content/documentation/Xcode/Reference/xcode_markup_formatting_ref/index.html

Quick Help style is the default.

Single line comment now inherits spaces from the previous line.

/// - aaa
///   - bbb // When M-j (indent-new-comment-line) is pressed here,
///   // triple spaces will be inserted after slashes.

Improved functions related to defuns. More robust and sensible behaviors.

Multiline strings with interpolation

09 Sep 01:35
Compare
Choose a tag to compare

Supports multiline strings with interpolation:

let x = """
  The quick brown \(
    fox()
  ) jumps over the lazy \(
    dog()
  )
  """

Add build/debug command

17 Jul 07:09
Compare
Choose a tag to compare

Added commands to build/debug Swift modules/iOS apps.

See swift-mode:build-swift-module, swift-mode:build-ios-app, swift-mode:debug-swift-module, and swift-mode:debug-ios-app.

Fix indentation for catch block

25 Feb 02:27
Compare
Choose a tag to compare
v2.2.4

Bump version to 2.2.4

Better indent-new-comment

05 Feb 11:55
Compare
Choose a tag to compare

swift-mode:indent-new-comment-line (M-j or C-M-j) now inhertis slashes from the previous line. Example:

/// Some documentation comment
///
/// Typing M-j here will insert three slashes on the next line instead of two.

Fix indentation for keywords used as parameter names

29 Jan 07:08
Compare
Choose a tag to compare

The following code is now correctly indented.

foo(
  in: 1
)

foo(
  where: 1
)