Re[6]: [CEDET-devel] [Ecb-list] sematic problem with template s - for me all works perfectly with
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2004-04-05 11:49:05
|
>>> "Berndl, Klaus" <kla...@sd...> seems to think that: >Eric M. Ludlam wrote: > >> I'll guess it is the lexer in this new version of C++. The >> <template> specifier is now examined as a list. For example, put >> this into a C++ file: >> >> std::list<boost::shared_ptr<Document> > >> >> and run "M-x semantic-lex-text RET". I get: >> >> semantic-c-lexer: ((symbol 1 . 4) (punctuation 4 . 5) (punctuation 5 >> . 6) (symbol 6 . 10) (semantic-list 10 . 40)) [3 times] >> >> I bet you get something else. > >You have won your bet ;-) i get: >semantic-c-lexer: ((symbol 1 . 4) (punctuation 4 . 5) (punctuation 5 . 6) (symbol 6 . 10) (punctuation 10 . 11) (symbol 11 . 16) (punctuation 16 . 17) (punctuation 17 . 18) (symbol 18 . 28) (punctuation 28 . 29) (symbol 29 . 37) (punctuation 37 . 38) (punctuation 39 . 40) (symbol 41 . 45) (punctuation 45 . 46)) > > >> Anyway, I tried it out, and this patch fixes the problem: >> >> *** semantic-c.el.~1.29.~ 2004-03-27 20:36:44.000000000 -0500 >> --- semantic-c.el 2004-04-04 22:15:55.000000000 -0400 >> *************** >> *** 512,517 **** >> --- 512,520 ---- >> (setq semantic-tag-expand-function 'semantic-expand-c-tag >> semantic-dependency-include-path semantic-default-c-path >> semantic-orphaned-member-metaparent-type "struct" >> + semantic-lex-syntax-modifications '((?> ".") >> + (?< ".") >> + ) >> semantic-symbol->name-assoc-list >> '((type . "Types") >> (variable . "Variables") >> > >Ok, now i understand, so my suspision about different syntax-tables was >not so bad ;-) But do you have any idea why i have another syntax for >< and > than you?? Because i use the same lexer (ie. semantic-c.el) >than you and Markus! [ ... ] The syntax table is defined in cc-mode, not in semantic. The lexer users what is provided in the major mode, and makes modifications using the above patched variable. 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 |