diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c137a564..edee4e26b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ * Correct line number references with Xcode 13. [John Fairhurst](https://github.com/johnfairh) +* Support `union` declarations in Objective-C headers. + [Brian Osborn](https://github.com/bosborn) + [John Fairhurst](https://github.com/johnfairh) + ##### Bug Fixes * None. diff --git a/SourceKitten b/SourceKitten index d2cc8ee8a..eeb2bed8b 160000 --- a/SourceKitten +++ b/SourceKitten @@ -1 +1 @@ -Subproject commit d2cc8ee8a56db1b6269919a3372a4caa40cebedc +Subproject commit eeb2bed8ba9c73a72843b7769dfce96c5dc8bc13 diff --git a/bin/sourcekitten b/bin/sourcekitten index 0580ca923..1a83a78eb 100755 Binary files a/bin/sourcekitten and b/bin/sourcekitten differ diff --git a/lib/jazzy/source_declaration/type.rb b/lib/jazzy/source_declaration/type.rb index 6ab85a0bd..076071dde 100644 --- a/lib/jazzy/source_declaration/type.rb +++ b/lib/jazzy/source_declaration/type.rb @@ -255,6 +255,11 @@ def ==(other) dash: 'Struct', global: true, }.freeze, + 'sourcekitten.source.lang.objc.decl.union' => { + jazzy: 'Union', + dash: 'Union', + global: true, + }.freeze, 'sourcekitten.source.lang.objc.decl.field' => { jazzy: 'Field', dash: 'Field', diff --git a/spec/integration_specs b/spec/integration_specs index 4891788fb..55663efa5 160000 --- a/spec/integration_specs +++ b/spec/integration_specs @@ -1 +1 @@ -Subproject commit 4891788fbcabfd4967202b9a2151b0cca3c050b6 +Subproject commit 55663efa5dad0f3526c4b1cfa12a073c8c4704e1