swift-mode

Emacs support for Apple's Swift programming language.

GPL-3.0 License

Stars
363
swift-mode - Support Swift 5.7

Published by taku0 over 2 years ago

swift-mode - Filling comments and strings

Published by taku0 over 2 years 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.
swift-mode - Fixed face of function names

Published by taku0 about 3 years ago

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

Fixes #174.

swift-mode - Support Swift 5.5

Published by taku0 about 3 years ago

Support Swift 5.5 features not included in v8.3.0:

  • async let
  • nonisolated/isolated
  • get async throws
swift-mode - Async/await and actor

Published by taku0 over 3 years ago

  • Adds support to async/await and actor.
  • Fix M-j and C-M-j for Emacs 27.
swift-mode - Font Locking for negation operator, and other fixes

Published by taku0 over 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.

swift-mode - Fix indentation of switch-case

Published by taku0 about 4 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 .

swift-mode - Swift 5.3 and REPL fix

Published by taku0 about 4 years ago

swift-mode - Fix indentation of generic parameters

Published by taku0 over 4 years ago

Fixed indentation of generic parameters.

Example:

struct Foo<
  A: A,
  A: A, A: A
> {
}

Added some keyword of Swift 5.1.

Other small fixes.

swift-mode - Fix indentation after `class` modifier

Published by taku0 over 5 years ago

Fix indentation after class token used as a modifier:

class Foo {
  public
    class
    var
    foo = 1
}

Trivia:

class Foo {
  // Nested class named "final"
  class final {
  }

  // Non-overridable class method named "foo"
  class final func foo() {
  }
}
swift-mode - Improved Imenu and consistent behavior in multiline comments

Published by taku0 over 5 years ago

  • Improved Imenu and speedbar support
  • More consistent electric indents and adaptive-fills inside multiline comments
  • Chooses right executables for REPL, debugger, and other build tools
  • The buffer name of REPL is now *Swift REPL [cmd-string]* where cmd-string is the command name such as swift
  • Fixes beginning-of-defun hanging at the beginning of buffer
  • Updates highlighting of class names for Swift 5.0
swift-mode - Raw string literal

Published by taku0 almost 6 years ago

Adds support for raw string literal of Swift 5. For example: #"c:\windows\system32"#.

This release also enchances the hilighting of compiler directives.

swift-mode - Fix mark-defun

Published by taku0 about 6 years ago

This is a minor fix for swift-mode:mark-defun and swift-mode:mark-sentence.

swift-mode - Emacs 26 style mark-defun

Published by taku0 about 6 years ago

swift-mode:mark-defun and swift-mode:mark-sentence now take a numeric argument. It repeats that count. If the count is negative, reverse direction.

swift-mode - Improved font-lock

Published by taku0 over 6 years ago

  • More comprehensive and consistent highlighting of symbols in standard library.
  • Highlighting symbols in standard library is now optional.
swift-mode - Debug on iOS device and improved font-lock

Published by taku0 over 6 years ago

Now you can debug iOS apps on your device with ios-deploy. Install ios-deploy, set exec-path, run swift-mode:debug-ios-app, and choose Local device.

font-lock is improved and now customizable. Run customize-group with swift-mode:faces.

Most of those improvements are contributed by @msanders (Michael Sanders). Thanks!

swift-mode - Fix which-function-mode hang

Published by taku0 over 6 years ago

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.

Package Rankings
Top 6.74% on Proxy.golang.org
Badges
Extracted from project README
License GPL 3 Run Tests MELPA MELPA
Related Projects