Re: [CEDET-devel] activating cedet support in nxhtml mode?
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2006-07-05 17:20:50
|
>>> Florent Georges <dar...@ya...> seems to think that: >jo...@ve... wrote: > > [[ 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? >Etcetera. [ ... ] 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 needed. 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 -- Eric Ludlam: za...@gn..., er...@si... Home: http://www.ludlam.net Siege: www.siege-engine.com Emacs: http://cedet.sourceforge.net GNU: www.gnu.org |