File tree Expand file tree Collapse file tree 9 files changed +91
-3
lines changed
Expand file tree Collapse file tree 9 files changed +91
-3
lines changed Original file line number Diff line number Diff line change 3636 :type 'string
3737 :group 'docstr )
3838
39+ (defun docstr-actionscript-config ()
40+ " Automatically configure style according to variable `docstr-actionscript-style' ."
41+ (cl-case docstr-actionscript-style
42+ (t (docstr-util-default-format))))
43+
3944;;;### autoload
4045(defun docstr-writers-actionscript (search-string )
4146 " Insert document string for ActionScript using SEARCH-STRING."
47+ (docstr-actionscript-config)
4248 (let* ((start (point )) (prefix docstr-actionscript-prefix)
4349 (paren-param-list (docstr-writers--paren-param-list-behind search-string " :" ))
4450 (param-types (nth 0 paren-param-list))
Original file line number Diff line number Diff line change 2626
2727(require 'docstr )
2828
29+ (defcustom docstr-c++-style nil
30+ " Style specification for document string in C++."
31+ :type '(choice (const :tag " No specify" nil ))
32+ :group 'docstr )
33+
34+ (defcustom docstr-c++-prefix " * "
35+ " Prefix you use on each newline."
36+ :type 'string
37+ :group 'docstr )
38+
39+ (defun docstr-c++-config ()
40+ " Automatically configure style according to variable `docstr-c++-style' ."
41+ (cl-case docstr-c++-style
42+ (t (docstr-util-default-format))))
43+
2944;;;### autoload
3045(defun docstr-writers-c++ (search-string )
3146 " Insert document string for C++ using SEARCH-STRING."
32- (let* ((start (point )) (prefix " \n * " )
47+ (docstr-c++-config)
48+ (let* ((start (point )) (prefix docstr-c++-prefix)
3349 (paren-param-list (docstr-writers--paren-param-list search-string))
3450 (param-types (nth 0 paren-param-list))
3551 (param-vars (nth 1 paren-param-list))
Original file line number Diff line number Diff line change 2828
2929(declare-function docstr-writers-c++ " ext:docstr-c.el" )
3030
31+ (defcustom docstr-c-style nil
32+ " Style specification for document string in C."
33+ :type '(choice (const :tag " No specify" nil ))
34+ :group 'docstr )
35+
36+ (defcustom docstr-c-prefix " * "
37+ " Prefix you use on each newline."
38+ :type 'string
39+ :group 'docstr )
40+
41+ (defun docstr-c-config ()
42+ " Automatically configure style according to variable `docstr-c-style' ."
43+ (cl-case docstr-c-style
44+ (t (docstr-util-default-format))))
45+
3146;;;### autoload
3247(defun docstr-writers-c (search-string )
3348 " Insert document string for C using SEARCH-STRING."
49+ (docstr-c-config)
3450 (docstr-writers-c++ search-string))
3551
3652(provide 'docstr-c )
Original file line number Diff line number Diff line change 2828
2929(declare-function docstr-writers-javascript " ext:docstr-js.el" )
3030
31+ (defcustom docstr-groovy-style nil
32+ " Style specification for document string in Groovy."
33+ :type '(choice (const :tag " No specify" nil ))
34+ :group 'docstr )
35+
36+ (defun docstr-groovy-config ()
37+ " Automatically configure style according to variable `docstr-groovy-style' ."
38+ (cl-case docstr-groovy-style
39+ (t (docstr-util-default-format))))
40+
3141;;;### autoload
3242(defun docstr-writers-groovy (search-string )
3343 " Insert document string for Groovy using SEARCH-STRING."
44+ (docstr-groovy-config)
3445 (docstr-writers-javascript search-string))
3546
3647(provide 'docstr-groovy )
Original file line number Diff line number Diff line change 4444 :group 'docstr )
4545
4646(defun docstr-lua-config-lua-wiki ()
47- " "
47+ " Configre for convention, Lua-Users Wiki. "
4848 (docstr-util-default-format)
4949 (setq-local docstr-lua-prefix " -- " ))
5050
Original file line number Diff line number Diff line change 2929(declare-function docstr-writers-javascript " ext:docstr-js.el" )
3030
3131(defcustom docstr-php-style nil
32- " Style specification for document string in PGP ."
32+ " Style specification for document string in PHP ."
3333 :type '(choice (const :tag " No specify" nil ))
3434 :group 'docstr )
3535
36+ (defun docstr-php-config ()
37+ " Automatically configure style according to variable `docstr-php-style' ."
38+ (cl-case docstr-php-style
39+ (t (docstr-util-default-format))))
40+
3641;;;### autoload
3742(defun docstr-writers-php (search-string )
3843 " Insert document string for PHP using SEARCH-STRING."
44+ (docstr-php-config)
3945 (docstr-writers-javascript search-string))
4046
4147(provide 'docstr-php )
Original file line number Diff line number Diff line change 2626
2727(require 'docstr )
2828
29+ (defcustom docstr-rust-style nil
30+ " Style specification for document string in Rust."
31+ :type '(choice (const :tag " No specify" nil ))
32+ :group 'docstr )
33+
34+ (defun docstr-rust-config ()
35+ " Automatically configure style according to variable `docstr-rust-style' ."
36+ (cl-case docstr-rust-style
37+ (t (docstr-util-default-format))))
38+
2939;;;### autoload
3040(defun docstr-writers-rust (search-string )
3141 " Insert document string for Rust using SEARCH-STRING."
42+ (docstr-rust-config)
3243 (let* ((start (point )) (prefix " \n * " )
3344 (paren-param-list (docstr-writers--paren-param-list-behind search-string " :" t ))
3445 (param-types (nth 0 paren-param-list))
Original file line number Diff line number Diff line change 2828
2929(declare-function docstr-writers-rust " ext:docstr-rust.el" )
3030
31+ (defcustom docstr-scala-style nil
32+ " Style specification for document string in Scala."
33+ :type '(choice (const :tag " No specify" nil ))
34+ :group 'docstr )
35+
36+ (defun docstr-scala-config ()
37+ " Automatically configure style according to variable `docstr-scala-style' ."
38+ (cl-case docstr-scala-style
39+ (t (docstr-util-default-format))))
40+
3141;;;### autoload
3242(defun docstr-writers-scala (search-string )
3343 " Insert document string for Scala using SEARCH-STRING."
44+ (docstr-scala-config)
3445 (docstr-writers-rust search-string))
3546
3647(provide 'docstr-scala )
Original file line number Diff line number Diff line change 2828
2929(declare-function docstr-writers-actionscript " ext:docstr-actionscript.el" )
3030
31+ (defcustom docstr-typescript-style nil
32+ " Style specification for document string in TypeScript."
33+ :type '(choice (const :tag " No specify" nil ))
34+ :group 'docstr )
35+
36+ (defun docstr-typescript-config ()
37+ " Automatically configure style according to variable `docstr-typescript-style' ."
38+ (cl-case docstr-typescript-style
39+ (t (docstr-util-default-format))))
40+
3141;;;### autoload
3242(defun docstr-writers-typescript (search-string )
3343 " Insert document string for TypesSript using SEARCH-STRING."
44+ (docstr-typescript-config)
3445 (docstr-writers-actionscript search-string))
3546
3647(provide 'docstr-typescript )
You can’t perform that action at this time.
0 commit comments