Releases: swift-emacs/swift-mode
Fix which-function-mode hang
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
which-function-mode
and add-change-log-entry
work as expected now.
Fixes handling of unmatched parenthesis.
Fix beginning/end-of-sentence
Added tests and fixed beginning/end-of-sentence
.
Sentences, comments, and defuns
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
Added comment style option.
Now we can choose multiline comment styles.
Java style:
/**
* Foo
* Bar
*/
Swift Quick Help style:
/**
Foo
Bar
*/
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
Supports multiline strings with interpolation:
let x = """
The quick brown \(
fox()
) jumps over the lazy \(
dog()
)
"""
Add build/debug command
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
v2.2.4 Bump version to 2.2.4
Better indent-new-comment
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
The following code is now correctly indented.
foo(
in: 1
)
foo(
where: 1
)