Skip to content

Commit

Permalink
(swift) @objcMembers not completely highlighted (#2543)
Browse files Browse the repository at this point in the history
* Fixed @objcMembers in Swift

Would match `@objc` first, and the `Members` part would be unhighlighted

* Update CHANGES.md

* Update swift.js
  • Loading branch information
nicked committed May 10, 2020
1 parent a3be151 commit 544ed68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/languages/swift.js
Expand Up @@ -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'

},
{
Expand Down

0 comments on commit 544ed68

Please sign in to comment.