[Lazarus] Syntax highlighting anomalies

Martin lazarus at mfriebe.de
Mon Oct 11 00:15:01 CEST 2010


  On 09/10/2010 12:26, Bernd Kreuss wrote:
> On 09.10.2010 12:43, Bernd Kreuss wrote:
>
>> The changes to the highlighter are just handful of lines, I quickly
>> hacked something together yesterday evening to see how this mode would
>> look like and it seems to work and I very much like how my programs
>> appear in this mode.
> Attached is a diff of my changes:
>
> * do not highlight String
> * do not highlight AnsiString
> * do not highlight WideString
> * highlight break
> * highlight continue
> * highlight exit
> * highlight message only in a procedure defnition (partial fix to the
> bug mentioned earlier, it does not eliminate all cases, judging from the
> comments in the source a complete fix would need an improved parser in
> the highlighter, but at least it now gets rid of highlighted "message"
> anywhere *outside* the line where a procedure is defined.
>
> the above patch is what I now use here locally an
I ve applied the "message" part (with even more improvements) and also 
some improvements to false "index" highlights. rev 27645

I'll look at the rest later, as it will also need extended config entries.

Martin




More information about the Lazarus mailing list