SourceKitten
SourceKitten copied to clipboard
Add markup delimiters supported by Xcode
Summary
This PR adds support for documentation markup delimiters supported by Xcode (see full list of markup delimiters).
Code changes
- Update
parseFullXMLDocsmethod inFile.swiftto extractAbstract,ThrowsDiscussionand other supported delimiters from XML document - Update
parseFullXMLDocsto support emphasis by replacing<emphasis>with_ - Add new keys to
SwiftDocKeyenum - Add
SwiftDocMarkupDelimiterTeststo test each supported delimiter - Update test fixtures as needed
Note: Some fixtures are pending to be updated, will fix soon. Any help by maintainers would be appreciated.
Thanks for the PR!
To update fixtures, you can set the OVERWRITE_FIXTURES or APPEND_FIXTURES environment variables while running the tests.
@jpsim @norio-nomura I'm going to need some help getting these fixtures fixed for all Swift versions supported. Any suggestions?