File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 2929 " This function returns `comment-start' trimmed by whitespaces."
3030 (yas-s-trim comment-start))
3131
32+ (defun yas-trimmed-add-comment ()
33+ " This function returns `comment-start' trimmed by whitespaces. It uses
34+ `comment-add' to determine how many comment symbols to insert."
35+ (yas-s-trim (apply #'concat (mapcar (lambda (x )
36+ comment-start)
37+ (number-sequence 0 comment-add)))))
38+
3239(defun yas-trimmed-comment-end ()
3340 " This function returns `comment-end' trimmed by whitespaces if
3441`comment-end' is not empty. Otherwise the reversed output of
Original file line number Diff line number Diff line change 1+ # -*- mode : snippet -*-
2+ # contributor :
Antero Mejr <
[email protected] >
3+ # name : spdxcopyright
4+ # key : spc
5+ # --
6+ `(yas-trimmed-add-comment) ` SPDX-FileCopyrightText: $0 `comment-end `
Original file line number Diff line number Diff line change 1+ # -*- mode : snippet -*-
2+ # contributor :
Antero Mejr <
[email protected] >
3+ # name : spdxlicense
4+ # key : spl
5+ # --
6+ `(yas-trimmed-add-comment) ` SPDX-License-Identifier: $0 `comment-end `
You can’t perform that action at this time.
0 commit comments