|Building a CDT based editor [message #896775]
||Thu, 19 July 2012 13:00
|| Prajeet Missing name
Registered: November 2010
Hey guys i am building a CDT based editor.|
I understand CDT's document partitioning scheme. I am currently working on the syntax highlighting part of my editor. I have used the default C partitions defined in ICPartions interface. I have written my own scanners for syntax highlighting (DefaultDamagerRepairer is configured with these scanners for the respective partitions). The scanners and the rules are all fine. They seem to color everything just as i wanted.
But i am noticing this strange behavior - Lets suppose i have a multi-line comment
This is nicely colored green. But when i modify it - insert "world" after "hello" the color for that line is all messed up. What is going on? I thought the DefaultDamagerRepairer is suppose to find the damage and repair it (by running the scanner)? The 2 lines that follow Hello World are properly colored. I believe the problem is somewhere with new region not being repaired...
Can someone explain why this is happening? Do i need a reconciler ?
In order to gain something, something of equal value must be sacrificed.
[Updated on: Thu, 19 July 2012 13:09]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01474 seconds