Skip to content

Commit bbf3bb4

Browse files
committed
Update Swift syntax (close #1795)
1 parent 0733562 commit bbf3bb4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
- Revert the steppers to the font setting controls in the Appearance settings pane.
99
- Remove the Script menu from the context menu.
10+
- Update the Swift syntax to support highlighting regex literals.
1011

1112

1213
### Fixes

CotEditor/Resources/Syntaxes/Swift.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,12 @@ attributes:
6161
- beginString: '@warn_unused_result'
6262
- beginString: '@WindowLoading'
6363
characters:
64+
- beginString: '#/'
65+
endString: /#
6466
- beginString: ''''
6567
endString: ''''
68+
- beginString: /
69+
endString: /
6670
- beginString: \bU+[0-9a-fA-F]{4,5}\b
6771
regularExpression: true
6872
commands:
@@ -222,9 +226,9 @@ metadata:
222226
author: 1024jp
223227
description: Based on Swift 6.0
224228
distributionURL: https://coteditor.com
225-
lastModified: '2024-11-04'
229+
lastModified: '2025-03-05'
226230
license: Same as CotEditor
227-
version: 4.12.1
231+
version: 4.12.2
228232
numbers:
229233
- beginString: (?<![0-9a-z_$])-?[0-9][0-9._]*(e[-+]?[0-9._]+)?\b
230234
ignoreCase: true

0 commit comments

Comments
 (0)