Swift Mode Versions Save

Emacs support for Apple's Swift programming language.

v8.5.0

1 year ago

fill-paragraph, fill-region, and auto filling in comments and strings, based on woolsweater's work.

  • Recognizes some Markdown blocks.
  • Handles multiline comments:
    /* aaa bbb ccc */
    ↓↑
    /*
      aaa
      bbb
      ccc
    */
    
  • If swift-mode:fill-paragraph-entire-comment-or-string is non-nil, fill-paragraph fills the entire comment.
  • If comment-fill-column is defined, it is used in comments rather than fill-column.

v8.4.2

2 years ago

Function names are now correctly faced with swift-mode:function-name-face.

Fixes #174.

v8.4.0

2 years ago

Support Swift 5.5 features not included in v8.3.0:

  • async let
  • nonisolated/isolated
  • get async throws

v8.3.0

2 years ago
  • Adds support to async/await and actor.
  • Fix M-j and C-M-j for Emacs 27.

v8.2.0

3 years ago
  • Add support for font-locking negation operator.
  • Fix swift-mode:debug-ios-app for newer Xcode.
  • Fix indentations and font-locks.
  • Fix documentations.
  • Fix GitHub Actions.
  • Migrated to Eldev.

Thanks @jcs090218, @woolsweater, and @danielmartin.

v8.1.1

3 years ago

If swift-mode:switch-case-offset is equal to or greater than swift-mode:basic-offset, the body of switch statements are indented to swift-mode:switch-case-offset + swift-mode:basic-offset.

Before:

switch foo {
      case 1:
    print(1)
      default:
    print("other")
}

After:

switch foo {
      case 1:
          print(1)
      default:
          print("other")
}

Thanks @woolsweater .