doc-cpp.srt 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. ;; doc-c.srt --- SRecode templates for "document" applications
  2. ;; Copyright (C) 2008-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 "c++-mode"
  16. set application "document"
  17. context declaration
  18. ;;; Notes on the DOCUMENT templates.
  19. ;;
  20. ;; These templates recycle existing templates for doxygen in the
  21. ;; more general C++ template set.
  22. template section-comment :indent :blank
  23. "A comment separating major sections of a file."
  24. ----
  25. {{>:declaration:doxygen-section-comment}}
  26. ----
  27. template function-comment :tag :indent :blank
  28. "A comment occurring in front of a function.
  29. Recycle doxygen comment code from the more general template set."
  30. ----
  31. {{>:declaration:doxygen-function}}
  32. ----
  33. template variable-same-line-comment :tag
  34. "A comment occurring after a variable declaration.
  35. Recycle doxygen comment code from the more general template set."
  36. ----
  37. {{>:declaration:doxygen-variable-same-line}}
  38. ----
  39. ;; These happen to be the same as in a classdecl.
  40. template group-comment-start :blank :indent
  41. "A comment occurring in front of a group of declarations.
  42. Recycle doxygen comment code from the more general template set."
  43. ----
  44. {{>:classdecl:doxygen-function-group-start}}
  45. ----
  46. template group-comment-end :blank :indent
  47. "A comment occurring at the end of a group of declarations.
  48. Recycle doxygen comment code from the more general template set."
  49. ----
  50. {{>:classdecl:doxygen-function-group-end}}
  51. ----
  52. ;; Some templates only show up in classdecls.
  53. context classdecl
  54. template group-comment-start :blank :indent
  55. "A comment occurring in front of a group of declarations.
  56. Recycle doxygen comment code from the more general template set."
  57. ----
  58. {{>:classdecl:doxygen-function-group-start}}
  59. ----
  60. template group-comment-end :blank :indent
  61. "A comment occurring at the end of a group of declarations.
  62. Recycle doxygen comment code from the more general template set."
  63. ----
  64. {{>:classdecl:doxygen-function-group-end}}
  65. ----
  66. ;; end