How to make customized CDT editor take effect at the very start? [message #775913] |
Fri, 06 January 2012 23:22 |
hao shen Messages: 3 Registered: January 2012 |
Junior Member |
|
|
We modified a customized CDT editor based on CDT8.0, but the customized editor does not take effect at the very start.
Background:
We have a language extended from standard C with some specific grammars. Now we are working on making CDT editor support this language.
Problem details:
Currently, the main modification is done. But we are facing a pitfall. That is when we open a file in the customized CDT editor, the lines with our own grammars will be reported as symtax errors at the very start. Then after several seconds, these lines will be parsed correctly and the syntax errors will go away.
Our main change to support the grammar happens in two files,
org.eclipse.cdt/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
org.eclipse.cdt/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner/CPreprocessor.java.
There are several little changes in the other related files.
I guess this issue is related with dom, but with no confidence.
Question:
Is there any modification needed for making the editor take effect at the very start?
[Updated on: Fri, 06 January 2012 23:24] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01834 seconds