Skip to content

Commit 544ed68

Browse files
authored
(swift) @objcMembers not completely highlighted (#2543)
* Fixed @objcMembers in Swift Would match `@objc` first, and the `Members` part would be unhighlighted * Update CHANGES.md * Update swift.js
1 parent a3be151 commit 544ed68

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,14 @@ Language Improvements:
3232
- fix(javascript) `=>` function with nested `()` in params now works (#2502) [Josh Goebel][]
3333
- fix(typescript) `=>` function with nested `()` in params now works (#2502) [Josh Goebel][]
3434
- fix(yaml) Fix tags to include non-word characters (#2486) [Peter Plantinga][]
35+
- fix(swift) `@objcMembers` was being partially highlighted (#2543) [Nick Randall][]
3536

3637
[Josh Goebel]: https://github.com/yyyc514
3738
[Peter Plantinga]: https://github.com/pplantinga
3839
[David Benjamin]: https://github.com/davidben
3940
[Vania Kucher]: https://github.com/qWici
4041
[Hankun Lin]: https://github.com/Linhk1606
42+
[Nick Randall]: https://github.com/nicked
4143

4244

4345
## Version 10.0.2

src/languages/swift.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export default function(hljs) {
129129
'@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|' +
130130
'@infix|@prefix|@postfix|@autoclosure|@testable|@available|' +
131131
'@nonobjc|@NSApplicationMain|@UIApplicationMain|@dynamicMemberLookup|' +
132-
'@propertyWrapper)'
132+
'@propertyWrapper)\\b'
133133

134134
},
135135
{

0 commit comments

Comments
 (0)