How to customize a swift-style to replace the C-style?
iT-Boyer opened this issue · 0 comments
iT-Boyer commented
(docstr--c-style-search-string 1)
(defun docstr-trigger-swift (&rest _)
"Trigger document string inside Swift."
(when (and (memq major-mode docstr-swift-modes)
(docstr--doc-valid-p)
(docstr-util-looking-back "///" 3))
(insert " ")
(docstr--insert-doc-string (docstr--c-style-search-string 1))))
/// [summary]
///
/// - arr1: [description]
/// - arr2: [description]
/// - returns: [description]
The default swift language annotation is the C language style. How to customize a swift style to replace the C language style?
this swift style like:
/// <#Description#>
/// - Parameters:
/// - arr1: <#arr1 description#>
/// - arr2: <#arr2 description#>
/// - Returns: <#description#>