[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need Help for Syntax HighLighting
[Thread Prev] | [Thread Next]
- Subject: Re: Need Help for Syntax HighLighting
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Wed, 28 Aug 2024 20:57:52 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 28/08/2024 à 20:57, Benoît Minisini a écrit :
Le 28/08/2024 à 09:44, Hans Lehmann a écrit :Hello,I am looking for a string- or RegExp-pattern allowing to highlight the comments in the proprietary language LIPA. The comments in LIPA are enclosed in curly brackets. Here an example for a command line:INP(16); { First summand (s1 ∈ ℕ) is entered » stack_1 }My aim is to highlight the text between the curly brackets - which means without the brackets.I tried: Comment: from { to } <---- that works, but includes the brackets between { and } <---- that doesn't work at all and tested regular LookAhead and LookBehind expressions like match /(?<=\{).*(?=\})/but they didn't work as well although they work with the Gambas RegExp-class.Can anyone help? With kind regards HansDid you try something like that? CommentBrackets{Normal}: from { to } CommentContents{Comments}: match /^}/
Or better: CommentBrackets{Normal}: from { to } CommentContents{Comments}: between here and } -- Benoît Minisini.
Re: Need Help for Syntax HighLighting | Gianluigi <gradobag@xxxxxxxxxxx> |
Need Help for Syntax HighLighting | Hans Lehmann <hans@xxxxxxxxxxxxxx> |
Re: Need Help for Syntax HighLighting | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |