361 Commits

Author SHA1 Message Date
Copilot a240eb27d4 Parse Swift 6.4 :: module selectors as a single infix operator token (#2395)
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
2026-03-03 08:09:28 -08:00
Nick Lockwood b1c109728e Fix parsing of value generics 2026-03-03 08:09:27 -08:00
Cal Stephens 4888e64821 Update redundantMemberwiseInit rule to support result builder attributes (#2304) 2026-01-25 09:02:04 -08:00
Manny Lopez 688ff0cae6 Add wrapSingleLineBodies rule (#2295) 2026-01-25 09:02:04 -08:00
Cal Stephens b755b34f69 Wrap closing paren of single-argument functions and collections if needed (#2281) 2026-01-25 09:02:04 -08:00
Nick Lockwood 251c4d8f7f Add isAttribute helpers 2026-01-25 09:02:03 -08:00
Nick Lockwood 62ac33bc0a Add Token.isMacro helper 2025-10-16 07:16:56 +01:00
Nick Lockwood 96e099573b Ensure white space in multiline strings is not altered by formatting 2025-10-16 07:16:56 +01:00
Nick Lockwood aeb0c07511 Fix parsing multiline string delimiter followed by white space 2025-10-04 14:26:21 +01:00
Nick Lockwood bc97082d59 Refactor spaceAroundParens rule 2025-10-04 08:46:46 +01:00
Nick Lockwood 3e4dc4e575 Fix of in fixed-size arrays being mistaken for an identifier 2025-10-04 08:46:46 +01:00
Nick Lockwood 6ea6ae64c7 Add new rules to project .swiftformat file 2025-10-04 08:46:46 +01:00
Cal Stephens 1e2aac8da6 Add support for Swift 6.2 raw identifiers (#2166) 2025-09-22 19:13:35 -07:00
Nick Lockwood c42207bd41 Update .swiftformat swiftfversion 2025-07-13 11:32:06 -07:00
Cal Stephens 131b079154 Fix issue where try? [...] was confused for subscript in trailingCommas rule (#2091) 2025-06-15 09:00:11 -07:00
Cal Stephens 5f65da1741 Update trailingCommas rule to handle edge cases where Swift 6.1 unexpectedly doesn't allow trailing commas in tuple or closure types (#2052) 2025-05-13 19:56:49 -07:00
Cal Stephens 3a51e0587f Update tokenizer to support parameter pack syntax in generics (#2007) 2025-04-29 18:22:52 -07:00
Nick Lockwood 409cebcb00 Fix parsing \.? sequence 2024-11-23 21:43:29 +00:00
Cal Stephens 798d5e3a7e Fix bug in markTypes for complex protocol extensions 2024-11-16 20:12:03 +00:00
Nick Lockwood 5e39daeef7 Update minimum supported Swift version to 5.3 2024-11-16 20:11:54 +00:00
Cal Stephens 4c3c1000dd Add --outputtokens option to print output tokens instead of source code (#1811) 2024-11-16 20:11:16 +00:00
Cal Stephens 6ce3bd52c1 Implement each rule in a separate file (#1782) 2024-11-09 11:26:22 +00:00
Nick Lockwood bdc01a3265 Fix tokenizing of throwing closure in generic 2024-10-06 18:51:45 +01:00
Nick Lockwood e20ba85061 Improve blankLinesBetweenChainedFunctions rule 2024-07-22 09:18:11 +01:00
Nick Lockwood 25fd24d0b2 Fix conflict between sortDeclarations and organizeDeclarations 2024-06-11 07:45:22 +01:00
Nick Lockwood 9f06cd9597 Fix parsing generics containing attribute 2024-05-18 14:42:07 +01:00
Janosch Hildebrand 2d3155030d Add "~" to the allowed operators in generic scopes (#1702)
~ is used in generic scopes to suppress conformances (SE-0427)
2024-05-17 08:51:44 +01:00
Nick Lockwood 0f3970e844 Fix keywords inside attribute expressions 2024-04-06 06:59:18 +01:00
Nick Lockwood 9e5d0d588a Update for 0.53.5 release 2024-03-17 09:50:39 +00:00
Nick Lockwood a03119407c Update for 0.53.4 release 2024-03-09 08:07:35 +00:00
Nick Lockwood dbc9a4406d Update for 0.53.3 release 2024-03-02 11:01:19 +00:00
Cal Stephens 1b3586a060 Fix conditionalAssignment bugs with @unknown default cases (#1623) 2024-02-25 20:14:06 +00:00
Nick Lockwood 607c7057e5 Update for 0.53.2 release 2024-02-17 12:38:55 +00:00
Nick Lockwood 95d4039c9b Improve keyword matching 2024-02-12 19:16:13 +00:00
Nick Lockwood 402367fbe9 Update for 0.53.1 release 2024-01-26 18:35:30 +00:00
Nick Lockwood ce6524c7ed Fix duplicate file header bug 2024-01-26 00:20:26 +00:00
Nick Lockwood fef156a613 Update for 0.53.0 release 2024-01-08 19:19:59 +00:00
Nick Lockwood ad7707bd34 Update for 0.52.11 release 2023-12-06 00:05:51 +00:00
Nick Lockwood f89e4e4620 Fix raw string parsing bug 2023-12-05 20:00:02 +00:00
Nick Lockwood cac06079ce Update for 0.52.10 release 2023-11-14 23:08:29 +00:00
Nick Lockwood d37a477177 Update for 0.52.9 release 2023-11-11 08:06:23 +00:00
Cal Stephens 14963bde23 Fix issue where switch case with multiple where clauses could parse incorrectly 2023-11-11 07:51:55 +00:00
Nick Lockwood 4c8386a35e Update for 0.52.8 release 2023-10-17 03:54:35 -07:00
Nick Lockwood 7b0f378f58 Update for 0.52.7 release 2023-10-06 19:56:02 +01:00
Nick Lockwood dfa38a7335 Update for 0.52.6 release 2023-10-01 07:42:17 +01:00
Nick Lockwood 7eb1706ba2 Update for 0.52.5 release 2023-09-30 09:15:21 +01:00
Nick Lockwood 31a41ef53a Fix docComments with Note: prefix 2023-09-28 07:50:21 +01:00
Nick Lockwood 1f8b956bb9 Update for 0.52.4 release 2023-09-17 22:12:20 +01:00
Nick Lockwood 89185d1da7 Add test for incorrect use of keyword matching 2023-09-15 19:18:15 +01:00
Nick Lockwood 1c1bf3b72a Update for 0.52.3 release 2023-09-02 09:14:14 +01:00