[Lazarus] Regex and Syntax Highlighting

Graeme Geldenhuys graemeg.lists at gmail.com
Wed May 26 15:47:02 CEST 2010


On 26 May 2010 15:10, Marco van de Voort wrote:
>
> Not really, since TP didn't even supported it.

I honestly can't say, except that I know about (* and { style
formatting for very long and somewhere in that time I was taught never
to nest two of the same comment styles, always alternate then.


> Warnings are not illegal. They are just warnings.

Well if it is such accepted practice, then why is it a Warning in the
first place?


> (and that is feature, not bug, see above), it is clear, the real Pascal IDEs
> does it fine, the ones with the large amount of highlighters don't.

And it could maybe be that nobody (or very few) developers use
stand-alone editor to edit Pascal or Object Pascal code - they where
introduced to IDE's from the start. It's 99% of the time a rather
simple fix to get the other stand-alone editors to highlight like
Lazarus IDE. Many times it's just simple things that FPC or Delphi
introduced over the years that was not in the original Pascal (think
TP here) days.


> I was not talking about missing features.

It's not missing features in Lazarus IDE, it's simple bugs in the
highlighter code.


> where regex will have more problems than other principles, namely nested
> constructs.

Nested if statements, nested procedures, nested comments (the correct
style) all work fine with most regex highlighters, so I really don't
see your issue.  But enough said, we could go on forever like this,
but I have better things to do right now.


BTW:
I tried all the examples listed on this page (which FPC doesn't
support in most cases), and jEdit formatted then without problems -
perfectly, just like the website shows. Yes, nested types, nested
classes etc.. Lazarus and MSEide did too by the way [just to be fair].
  :-)

   http://edn.embarcadero.com/article/34324


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/




More information about the Lazarus mailing list