Skip to content

Commit

Permalink
Add support for Swift macro declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfairh committed Jun 18, 2023
1 parent 7e7790d commit ff2a408
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
* Update Javascript: jQuery 3.6.3, KaTeX 0.16.4
[John Fairhurst](https://github.com/johnfairh)

* Support Swift 5.9 `package` access control level.
* Support Swift `package` access control level.
[John Fairhurst](https://github.com/johnfairh)

* Support documenting Swift macro declarations.
[John Fairhurst](https://github.com/johnfairh)

##### Bug Fixes
Expand Down
4 changes: 4 additions & 0 deletions lib/jazzy/source_declaration/type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,10 @@ def ==(other)
jazzy: 'Associated Type',
dash: 'Alias',
}.freeze,
'source.lang.swift.decl.macro' => {
jazzy: 'Macro',
dash: 'Macro',
}.freeze,
}.freeze
end
# rubocop:enable Metrics/ClassLength
Expand Down
1 change: 1 addition & 0 deletions lib/jazzy/symbol_graph/symbol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def init_func_signature(func_signature)
'typealias' => 'typealias',
'associatedtype' => 'associatedtype',
'actor' => 'actor',
'macro' => 'macro'
}.freeze

# We treat 'static var' differently to 'class var'
Expand Down

0 comments on commit ff2a408

Please sign in to comment.