Skip to content

How to customize a swift-style to replace the C-style? #19

Description

@iT-Boyer

(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#>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions