I have created a major mode for editing files written in the template
language defined by the "template" package. It provides syntax
highlighting only. It will highlight HTML tags and template actions,
comments, strings, built-ins, and variables.
A current bug is that it highlights strings in the HTML as well as
inside template actions, and that means that template actions inside
HTML attributes are not highlighted (the entire attribute string is
highlighted as a single entity).
I also added an autoload entry for files with a ".gotmpl" extension.
Is there a standard extension for template files that should be used
instead?
I have put a version of the code up at
https://gist.github.com/1654113
for review.
Right now it uses a lot of the code from go-mode.el, though I thought
it might be fun to use Semantic to write a real parser for it.
I propose adding this to the misc/emacs directory. Feedback?