Hmm. Well, it does to me.
Consider that comments are special, you don't want to parse anything inside a comment. Well, except for
doc comments like JavaDoc or JSDoc, which might have special @something.
Strings are special. You don't want parse anything (including comments) in strings, until you get to end of
string (either " or ', depending what it started with). The end of string can be escaped with \, which itself can be escaped with \.
I'm thinking POJOs for this. Tag later. Maybe one to parse, one to deal with decorating. Maybe an XML to configure decoration.
Then there's annotations.
Are there classes that Eclipse uses to do its parsing for JSEclipse and Aptana renderers? Are they open source?
How much time do you think it would take to write and
test?
[ May 19, 2007: Message edited by: Garrett Smith ]