Problem trying to use c-mode with mako submodes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nXhtml |
In Progress
|
Medium
|
Unassigned |
Bug Description
Hi
I'm trying to edit mako templates which generate c sourcecode, which works much better with mumamo than with mmm-mako.el so far.
I use the following experimental mode (derived from the mako-html modes):
(define-
But when I use a ${ ... } block inside a c-string, the font-locking stays in c-string mode afterwards.
Example (from https:/
#include "${protocol.name |filename}.h"
static void usage(char* program)
{
the function protocol for main is rendered in string mode.
I admit I don't really know what I'm doing, as I simply changed nxhtml-mode in the define to c-mode, and it "just (almost) worked"[TM], and read some code in mumamo-fun.el, to figure out why it (almost) didn't, so I hope you can hit me a little with the cluebat here.
Thanks Friedrich, it is good you are extending it on your own. But please remember that nXhtml is far from perfect. It is trying to give reasonable abilities. (Some low level changes to Emacs might be required to make it work better in some cases.)
There is also some still open bugs for the mako support.
However I can not reproduce the problem you have here. After adding a doc string to mako-c-mumamo-mode so I can compile it I do not see the problem.
Can you please give more details? Have you tried the latest beta 2.09 of nXhtml?