[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need Help for Syntax HighLighting


Am 28.08.24 um 22:30 schrieb Gianluigi:
Hi Benoit,

sorry to intrude, but Olivier's solution works here (even if I would
prefer the brackets in bold), but yours doesn't.
What am I doing wrong?
I attach a test project

Regards
Gianluigi

Hi Gianluigi

This solution is a work around, which limits the scope of characters usable as comment to those included in the character class. I would prefer to see a solution which allows the use of any character.

Apparently a LookBehind expression like

   match /(?<=\{).*/

doesn't work while a LookAhead expression like

   match /.*(?=\})/

works. Why?

Best regards

Claus



References:
Need Help for Syntax HighLightingHans Lehmann <hans@xxxxxxxxxxxxxx>
Re: Need Help for Syntax HighLightingBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Need Help for Syntax HighLightingBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Need Help for Syntax HighLightingGianluigi <gradobag@xxxxxxxxxxx>