Hi. I got my CUP and jFlex working! I'm currently working on my master essay (a ten/fifteen page introduction). It's about lightweight editor framework that support important features like Code-completion, Refactoring, Syntax highlighting, Error-reporting, so I'm using your framework as one of the cases. You can read some of my thought on my master tumblr:
http://thingmlosf.tumblr.com/. There you can also see the example language I'm using for now.
"Anywho", When I'm done with my paper, due June 1. I'll try to make a tutorial on how to implement CUP and Jflex, so that other can use those tools too. So they don't have to use their weekend to try it out them self

I've also manage to implement the Sourcetree.
But...there are two things I've still have problems with (which I think can be solved with the same solution).
When you highlight something, either as an error (squigglie-line) or with the use of the source tree, every marking happens only on the first line. For the error reporting I am sending the correct line, but it doesn't help. Even when I hard code another line then the first it still end up marking the first line.
when using the source tree I'm guess the problem lies in that the code is using textarea.select(), which doesn't handle lines.
Any tips for solutions? I'm thinking about using a search to fix the tree marking and just count the offset from start till the word. Or try to get it from my CUP file.