diff --git a/CHANGES.md b/CHANGES.md index 2b74d3d100..3ddb1a2c23 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -32,12 +32,14 @@ Language Improvements: - fix(javascript) `=>` function with nested `()` in params now works (#2502) [Josh Goebel][] - fix(typescript) `=>` function with nested `()` in params now works (#2502) [Josh Goebel][] - fix(yaml) Fix tags to include non-word characters (#2486) [Peter Plantinga][] +- fix(swift) `@objcMembers` was being partially highlighted (#2543) [Nick Randall][] [Josh Goebel]: https://github.com/yyyc514 [Peter Plantinga]: https://github.com/pplantinga [David Benjamin]: https://github.com/davidben [Vania Kucher]: https://github.com/qWici [Hankun Lin]: https://github.com/Linhk1606 +[Nick Randall]: https://github.com/nicked ## Version 10.0.2 diff --git a/src/languages/swift.js b/src/languages/swift.js index c5e5b0e8ac..e04fd72109 100644 --- a/src/languages/swift.js +++ b/src/languages/swift.js @@ -129,7 +129,7 @@ export default function(hljs) { '@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|' + '@infix|@prefix|@postfix|@autoclosure|@testable|@available|' + '@nonobjc|@NSApplicationMain|@UIApplicationMain|@dynamicMemberLookup|' + - '@propertyWrapper)' + '@propertyWrapper)\\b' }, {