Hi,
The language I work with is a mix of C and Pascal. I has C style comments and
begin...end instead of {..}
Object Pascal highlighter does not always highlight begin...end properly,
because Pascal has more complex syntax.
Is it possible to highlight only begin...end structures as in this language all
C style "{" and "}" are replaced with pascal like "begin" "end"?

in the example below should be highlighted pair 1 and 2. "case" does not start a
structure, but it is highlighted as pair 3, because in pascal "case" can starts
a sentence. 

if (apacc==credaccs[i]) then _begin_//2
      switch (invtype) _begin_//1
        case 3://3
          credbal[i] = credbal[i] + vp;
        otherwise
          credbal[i] = credbal[i] + vp;          
      _end;_//1, 3
      goto LAddToCreditorsAccounts;
    _end;_//2


-- 
<http://forum.pspad.com/read.php?2,43008,43008>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem