Mirko Stocker wrote: > @the other developers: If someone can provide me with some hints how to do an > AST based coloring, I'd be glad to look at it. Especially the problems with > here documents are frustrating me... > Well, Step 1 would be updating an AST (reparsing) after keystrokes or bursts of keystrokes. It'd be best to just dump that on the reconciler thread to happen after a few hundred milliseconds after the last keystroke. I haven't looked at the way heredocs are handled now (static rules, I guess), but you could - in the SourceViewerConfiguration.getRepresentationReconciler do reconciler.setDamager(textRepairer, IDocument.DEFAULT_CONTENT_TYPE); reconciler.setRepairer(textRepairer, IDocument.DEFAULT_CONTENT_TYPE) where textRepairer is a DefaultDamagerRepairer; - this would access the AST to see where to paint heredocs;
Hm... come to think of it: is there an easier way of spotting heredocs than looking at the AST? murphee ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rubyeclipse-development mailing list Rubyeclipse-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rubyeclipse-development