doc-default.srt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. ;; doc-default.srt --- SRecode templates for "document" applications
  2. ;; Copyright (C) 2009-2012 Free Software Foundation, Inc.
  3. ;; Author: Eric M. Ludlam <eric@siege-engine.com>
  4. ;; This file is part of GNU Emacs.
  5. ;; GNU Emacs is free software: you can redistribute it and/or modify
  6. ;; it under the terms of the GNU General Public License as published by
  7. ;; the Free Software Foundation, either version 3 of the License, or
  8. ;; (at your option) any later version.
  9. ;; GNU Emacs is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;; You should have received a copy of the GNU General Public License
  14. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  15. set mode "default"
  16. set application "document"
  17. context declaration
  18. template section-comment :blank :indent
  19. "A comment occurring in front of a group of declarations."
  20. ----
  21. {{comment_start}} {{?TITLE}}
  22. {{comment_prefix}}
  23. {{comment_prefix}} {{^}}
  24. {{comment_end}}
  25. ----
  26. template function-comment :tag :indent :blank
  27. "A comment occurring in front of a function."
  28. ----
  29. {{comment_start}} {{?NAME}} --
  30. {{DOC:srecode-comment-prefix}}
  31. {{comment_end}}
  32. ----
  33. template variable-same-line-comment :tag
  34. "A comment occurring after a variable declaration."
  35. ----
  36. {{comment_start}} {{?DOC}} {{comment_end}}
  37. ----
  38. ;; These happen to be the same as in a classdecl.
  39. template group-comment-start :blank :indent
  40. "A comment occurring in front of a group of declarations."
  41. ----
  42. {{comment_start}} {{?GROUPNAME}} --
  43. {{comment_end}}
  44. ----
  45. template group-comment-end :indent
  46. "A comment occurring at the end of a group of declarations."
  47. ----
  48. {{comment_start}} End {{?GROUPNAME}} {{comment_end}}
  49. ----
  50. ;; Some templates only show up in classdecls.
  51. context classdecl
  52. template group-comment-start :blank :indent
  53. "A comment occurring in front of a group of declarations."
  54. ----
  55. {{>:declaration:group-comment-start}}
  56. ----
  57. template group-comment-end :indent
  58. "A comment occurring at the end of a group of declarations."
  59. ----
  60. {{>:declaration:group-comment-end}}
  61. ----
  62. ;; end