Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] changes in grammar

You still need to inform the editor syntax highlighting of which identifiers to treat as keywords, this is separate from how the parser recognizes keywords.

To make this work you need to provide an implementation of ICLanguageKeywords. The easiest way to do this is to extend the CLanguageKeywords class and override the getKeywords() method. You will also need to extend BaseExtensibleLanguage and override the getAdapter() method to return your implementation of ICLanguageKeywords.

Mike Kucera
Software Developer
IBM Eclipse CDT Team

Inactive hide details for David Sariel ---07/08/2009 11:27:03 AM---Hello,David Sariel ---07/08/2009 11:27:03 AM---Hello,


David Sariel <datosar@xxxxxxxxx>




07/08/2009 11:27 AM


[cdt-dev] changes in grammar

I have checked out the org.eclipse.cdt from CVS and:
1) Added several keyword  and added several new ones to the C99
grammar (in I:\cdt-org.eclipse.cdt\lrparser\org.eclipse.cdt.core.lrparser\grammar)
2) Generated new parser
3) Rebuilt the CDT with the new parser

While rebuilding I found that the build process compiles the files
that are located in
org.eclipse.cdt\all\org.eclipse.cdt.releng\Copy of results\plugins and
I made sure that
newly generated parser files were compiled (according to the compile.log) .
But, while running the rebuilt IDE, the keyword that were supposed to
be gone are still
Highlighted by the IDE and newly added keywords are not highlighted at all.

Any thoughts will be appreciated,
cdt-dev mailing list

GIF image

GIF image

Back to the top