253 Commits

Author SHA1 Message Date
Bastian 75990ecbca docs: add installation steps (#160) 2025-09-02 09:48:09 -07:00
Satoshi SAKAO c76b52c68b Fixed indentation in block which is different from Xcode's (#159) 2025-02-11 09:33:03 -08:00
Satoshi SAKAO 511c37e150 Fix SwiftUI view indentation after the ViewModifier block (#158) 2025-02-08 10:41:05 -08:00
Satoshi SAKAO 2fa181dc12 Add regression test (#157) 2025-02-07 10:59:24 -08:00
Satoshi SAKAO 30ce89788a Fix closing bracket indentation issue (#156) 2025-02-07 10:20:47 -08:00
Satoshi SAKAO a899f26994 Fix SwiftUI indentation issues (#154) 2025-02-04 10:40:23 -08:00
Keith Smiley 87ea6da902 Remove syntastic
It still works but isn't really recommended
2024-07-08 11:47:32 -07:00
Keith Smiley bb62135c43 More attributes 2023-08-01 21:15:38 -07:00
Keith Smiley ad75808961 Add some more keywords from Swift 5.9 2023-06-06 16:42:30 -07:00
Keith Smiley 51108a710e Add some more attributes and keywords
Some of these are optimistic about upcoming features
2023-04-04 11:58:21 -07:00
Gonzalo ba6f6cef58 Add 'any' keyword. (#150) 2022-11-05 09:13:13 -07:00
Keith Smiley 3e0529e1a9 Add @_disfavoredOverload 2022-08-01 09:21:16 -07:00
Keith Smiley 64256d0f2c Add some various SwiftUI property wrappers
It feels a bit weird to add these but it's practical!
2022-03-04 15:16:02 -08:00
Keith Smiley 3f1c8e297f Add isolated / nonisolated 2022-02-28 11:28:20 -08:00
Keith Smiley 478e11812f Add @preconcurrency 2022-01-28 11:09:06 -08:00
Keith Smiley 108e239e08 Add #unavailable keyword 2022-01-27 10:59:39 -08:00
Keith Smiley 3278cf3b05 Add #fileID and #filePath 2021-09-10 10:34:38 -07:00
Keith Smiley e83ca052e8 Add swiftinterface file type detection
This isn't really swift but it's better than nothing
2021-08-04 21:27:16 -07:00
Keith Smiley 7ef452b47f Update some keywords 2021-05-30 10:37:49 -07:00
Keith Smiley 74af6626f6 Add @resultBuilder 2021-05-05 10:12:52 -07:00
Birger J. Nordølum bfc662d11b fix: broken ALE linter syntax (#147)
`call ale#linter#Define` renamed parameters:
> executable_callback -> executable
> command_callback -> command

Fixes #129.
2020-09-04 15:46:57 -07:00
Ayman Bagabas c4053da882 [Compiler] Add Swift compiler (#142)
Set makeprg to `swiftc`.
2020-02-20 21:43:58 -08:00
Keith Smiley 245e5f7aae Add @_implementationOnly 2019-12-04 18:41:57 -08:00
Keith Smiley d3d6615159 Merge pull request #138 from keith/ks/add-opaque-return-type-keyword
Add opaque return type keyword
2019-07-08 21:45:24 -07:00
Keith Smiley 7a3b81bbdb Add opaque return type keyword 2019-07-08 21:45:11 -07:00
Keith Smiley ef9caa11a9 Merge pull request #137 from keith/ks/add-more-attributes
Add more attributes
2019-07-08 19:35:33 -07:00
Keith Smiley 6415e52c05 Add more attributes 2019-07-08 19:35:13 -07:00
Keith Smiley 5e330f026d Add new inlinable attributes 2018-09-12 10:40:26 -07:00
Keith Smiley 40d53b215f Only run ALE linter after save 2018-07-21 18:43:58 -07:00
Keith Smiley 91b65d9676 Catch SwiftPM warnings with ale 2018-07-21 18:17:16 -07:00
Keith Smiley 404df978f9 Add open to keywords 2018-04-20 11:37:48 -07:00
Keith Smiley 7d2daefcde Merge pull request #130 from keith/indent-parens
Make indent line up with opening parens
2018-04-04 10:14:24 -07:00
Keith Smiley 46a93db57f Fix interpolated wrapper contains 2018-04-01 23:38:51 -07:00
Keith Smiley d76f3a92eb Update example 2018-04-01 23:37:22 -07:00
Keith Smiley 7b83a9ba5b Make indent line up with opening parens
Previously we did this:

```swift
let foo = Bar(arg1: 1
    arg2: 2)
```

Now we do:

```swift
let foo = Bar(arg1: 1
              arg2: 2)
```
2018-04-01 23:37:14 -07:00
Keith Smiley f94bdfe723 Remove ale linter
Ale has a linter natively now, we should use that instead.
2018-03-02 14:15:19 -08:00
Keith Smiley 5b67513598 Merge pull request #128 from harlanhaskins/caution-tape
Add #warning and #error to Syntax file
2018-02-03 17:56:25 -08:00
Harlan a7bd522aab Add #warning and #error to Syntax file 2018-02-03 20:48:17 -05:00
Keith Smiley d0b46dfc78 Merge pull request #127 from AndrewSB/patch-1
Remove `Last Modified` comment
2018-02-02 16:16:22 -08:00
Andrew Breckenridge 3427c1592c Remove Last Modified comment
The comment isn't being kept up to date, so it ends up misleading readers into thinking the file hasn't been updated in years. I think it makes sense to remove it, git's log system works better to date this
2018-02-02 15:48:27 -08:00
Keith Smiley f3f4c47c95 Add multiline string literal support 2017-12-01 17:26:58 -08:00
Keith Smiley cdca9e86b1 Merge pull request #124 from ajh17/improvements
Ensure swiftTypeWrapper only wraps types in its own matchgroup
2017-08-25 15:14:33 -04:00
Akshay Hegde f7779b4321 Ensure swiftTypeWrapper only wraps types in its own matchgroup
Enum members, numbers, other literals like string will be highlighted
separately as part of their own matchgroup.

The result is that this:

fixes #93
fixes #90
fixes #89
2017-08-25 12:04:36 -07:00
Keith Smiley 289ee2e4b2 Merge pull request #123 from ajh17/period-highlight
Don't highlight a period as an operator
2017-08-25 09:05:09 -04:00
Akshay Hegde a45deca220 Don't highlight a period as an operator
References #121
2017-08-24 22:49:46 -07:00
Keith Smiley 098aae18ba Merge pull request #121 from ajh17/improvements
Fix an issue where numbers were being highlighted as properties
2017-08-24 11:30:07 -04:00
Akshay Hegde 350d49c5b9 Fix an issue where numbers were being highlighted as properties
Improves regex for swiftMethod and swiftProperties to expect a non-digit
following a period, as swift does not allow methods/funcs starting with
a digit.

Resolves #100
2017-08-23 21:51:02 -07:00
Keith Smiley 8a0dacb4ab Merge pull request #120 from brianlheim/patch-1
indent: fix indenting within parens
2017-08-20 13:46:06 -07:00
Brian Heim 3cb228374b indent: fix indenting within parens
move cursor to real end of previous line, and include end-of-line character in searchpair() using c flag
2017-08-20 11:07:07 -04:00
Keith Smiley 1eaba532b6 Merge pull request #119 from brianlheim/patch-1
indent: fix regex in IsCommentLine
2017-08-17 09:27:01 -07:00