>>> Florent Georges <darkman_spam@...> seems to think that:
> [[ sorry, I posted this email directly to Joakim ]]
>> ECB gets the tags through cedet, which hooks into html mode as
>> it does in any mode.
> So the question is: "How, exactly?" What are the assumptions CEDET
>does on the target mode? Does the mode have to expose some API? Is it
>done through a Bovine parser? There is some glue code to write?
[ ... ]
The CEDET child mode is a way of directing a series of mode-specific
stuff to be the same between different modes. See mode-local.el for
more on that.
Semantic will pick up things like the comment-start and end, and
syntax table, and use whatever is local. If it is similar to some
other mode, then you can declare it a child of a different mode,
allowing one semantic mode-program setup (parser, and override
functions) to work in both.
If you would like the nxhtml mode to do it's own parsing (which is
even better) then you would not create a child mode, and instead
code the handoff yourself where appropriate, and write new where
Converting the nxhtml data structure into semantic-tags would probably
be straight forward. Using the existing html parser would be the
simplest, but then you would have two parsers running.
Eric Ludlam: zappo@..., eric@...
Home: http://www.ludlam.net Siege: http://www.siege-engine.com
Emacs: http://cedet.sourceforge.net GNU: http://www.gnu.org