1 ;;; srecode-template.el --- SRecoder template language parser support.
3 ;; Copyright (C) 2005, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
5 ;; This file is part of GNU Emacs.
7 ;; GNU Emacs is free software: you can redistribute it and/or modify
8 ;; it under the terms of the GNU General Public License as published by
9 ;; the Free Software Foundation, either version 3 of the License, or
10 ;; (at your option) any later version.
12 ;; GNU Emacs is distributed in the hope that it will be useful,
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;; GNU General Public License for more details.
17 ;; You should have received a copy of the GNU General Public License
18 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22 ;; Parser setup for the semantic recoder template parser.
26 (require 'semantic
/ctxt
)
27 (require 'semantic
/wisent
)
28 (require 'srecode
/srt-wy
)
30 (define-mode-local-override semantic-tag-components
31 srecode-template-mode
(tag)
32 "Return sectiondictionary tags."
33 (when (semantic-tag-of-class-p tag
'function
)
34 (let ((dicts (semantic-tag-get-attribute tag
:dictionaries
))
37 (setq ans
(append ans
(cdr (car dicts
))))
38 (setq dicts
(cdr dicts
)))
42 ;; In semantic-imenu.el, not part of Emacs.
43 (defvar semantic-imenu-summary-function
)
46 (defun srecode-template-setup-parser ()
47 "Setup buffer for parse."
48 (srecode-template-wy--install-parser)
52 semantic-lex-analyzer
'wisent-srecode-template-lexer
55 semantic-imenu-summary-function
'semantic-format-tag-name
56 imenu-create-index-function
'semantic-create-imenu-index
57 semantic-command-separation-character
"\n"
58 semantic-lex-comment-regex
";;"
60 semantic-symbol-
>name-assoc-list
61 '((function .
"Template")
62 (variable .
"Variable")
65 senator-step-at-tag-classes
'(function variable
)
68 (provide 'srecode
/template
)
71 ;; generated-autoload-file: "loaddefs.el"
72 ;; generated-autoload-load-name: "srecode/template"
75 ;; arch-tag: 037fbca7-e846-4521-b801-3463f50c3080
76 ;;; srecode/template.el ends here