swift.vim
swift.vim copied to clipboard
Vim runtime files for Swift
The following Swift file ```swift switch readLine() { case "1": print("1") case "2": print("2") case "a": switch readLine() { case "1": print("1") default: print("Other") } default: print("Other") } ``` (there...
This is working: ```swift init(t: type, f: @escaping () -> String) ``` `@escaping` is completely highlighted as `swiftAttributes`. This is not working: ```swift init(t: Type, f: @escaping () -> String)...
I just installed swift.vim in neovim 0.4.3. My swift files compile and run fine in Swift version 5.3-dev (LLVM 55d27a5828, Swift 6a5d84ec08). But vim doesn't find any folds in my...
I'm new to swift so I'm not familiar with how things are supposed to work. Is there a way to get syntax errors to show up when editing a standalone...
Previously, certain keywords in comments would be left unmatched if the docstring was written as multiple single-line comments or if the comments began with an asterisk. For example: /** *...
I copied the default value for `comments` (see `:h comments`), removed what's not relevant to swift, and aded the triple slash comment. Resolves #139
Currently if you're editing a docstring like this: ``` /// Foo ``` You end up with: ``` /// Foo // ``` Ideally you would end up with 3 slashes on...
Apple has released a new language server protocol implementation, is this something we could use in this project? https://github.com/apple/sourcekit-lsp
The ale linter shows errors for files that aren't open, this can be confusing - especially when the linter shows an error that really doesn't exist in the current open...
```swift let projectImports = Set(targets.filter { $0.type.isImportable }.map { $0.name }) ``` Pressing enter after this line results in an extra indent level in