PreviousNextTracker indexSee it online !

(172/207) 3427744 - Edit modes: Support handling of nested code comments

I program a lot in a dialect of Pascal called Pascal/D80, and due to dialectal features and our own coding standards it is very common with nested comments in our source code, sometimes in several levels. I have written a Pascal/D80 language mode for jEdit which works quite well except that it cannot handle nested comments.

Basically, nested comments cannot be handled using only regular expressions. Depending on how jEdit implements edit mode parsing it would either require recursive parsing or a "level counter".

I am thinking about something in the lines of a new attribute:


Submitted boise - 2011-10-24 - 10:30:49z Assigned nobody
Priority 5 Category core
Status Open Group None
Resolution None Visibility No