@@ -384,6 +384,10 @@ Argument START is the starting point ot the insertion."
384384 (docstr-writers--insert-return return-type-str '(" void" ) prefix)
385385 (docstr-writers-after start)))
386386
387+ (defun docstr-writers-php (search-string )
388+ " Insert document string for PHP using SEARCH-STRING."
389+ (docstr-writers-javascript search-string))
390+
387391(defun docstr-writers-python (search-string )
388392 " Insert document string for Python using SEARCH-STRING."
389393 (let* ((start (point )) (prefix " \n " )
@@ -403,6 +407,21 @@ Argument START is the starting point ot the insertion."
403407 (insert prefix)
404408 (docstr-writers-after start)))
405409
410+ (defun docstr-writers-rust (search-string )
411+ " Insert document string for Rust using SEARCH-STRING."
412+ (let* ((start (point )) (prefix " \n * " )
413+ (paren-param-list (jcs-paren-param-list-behind search-string " :" t ))
414+ (param-types (nth 0 paren-param-list))
415+ (param-vars (nth 1 paren-param-list))
416+ (return-type-str (jcs--return-type-behind search-string " :" )))
417+ (docstr-writers--insert-param param-types param-vars prefix)
418+ (docstr-writers--insert-return return-type-str '(" void" ) prefix)
419+ (docstr-writers-after start)))
420+
421+ (defun docstr-writers-scala (search-string )
422+ " Insert document string for Scala using SEARCH-STRING."
423+ (docstr-writers-rust search-string))
424+
406425(defun docstr-writers-typescript (search-string )
407426 " Insert document string for TypesSript using SEARCH-STRING."
408427 (docstr-writers-actionscript search-string))
0 commit comments