[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need Help with defining highlight definition
[Thread Prev] | [Thread Next]
- Subject: Re: Need Help with defining highlight definition
- From: Brian G <brian@xxxxxxxxxxxxxxxx>
- Date: Wed, 16 Jul 2025 10:49:45 -0700
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Submitted merge request for two items, allow caseless matches in the texhighlighter, and fixed bug in theme load to allow .../
Added TextHighligher extension @ignorecase <true|false> so it can be placed into the highlighter file where needed.
Also updated the highlighter.highlighter to highlight the @ignorecase directive.
I hope this is acceptable! On 7/16/25 06:57, Brian G wrote:
Will submit merge request today On 7/15/25 15:01, Brian G wrote:On 7/15/25 12:19, Benoît Minisini wrote:Le 15/07/2025 à 17:49, Brian G a écrit :I don't know if this is useful to anyone else but I extended the texthighlighter with a static TextHighlighter.IgnoreCase propertyWhich will allow caseless word and symbol matches. Is it worth asking Ben to add this feature to the master?Anyone else have this issue? Usage is like: ....... TextHighlighter.IgnoreCase = TrueTry TextHighlighter.Register("asm6502", "asm6502", "highlight/ asm6502.highlight")If Error Then ..... On 7/14/25 11:54, Brian G wrote:All my keywords and test operators are caseless. I am trying to define @word to redifine how a word should look as caselessI try this @word /(?i)[A-Za-z_](?i)[A-Za-z0-9_]*(?-i)/ @word /(?i)[A-Za-z_][A-Za-z0-9_]*/ I want this@word (?i)/[A-Za-z_](?i)[A-Za-z0-9_]*/ this cause the evaluation to crashHelp?? has anyone done work with this?It's a good idea to be able to have case unsensitivity in keywords, but why did you make a bug report with the code instead of a merge request???I was not sure how you would feel about my approach/solution!
-- ~~~~ Brian
Attachment:
OpenPGP_0x78BFB26402F48419.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature
Re: Need Help with defining highlight definition | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Need Help with defining highlight definition | Brian G <brian@xxxxxxxxxxxxxxxx> |
Re: Need Help with defining highlight definition | Brian G <brian@xxxxxxxxxxxxxxxx> |
Re: Need Help with defining highlight definition | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: Need Help with defining highlight definition | Brian G <brian@xxxxxxxxxxxxxxxx> |
Re: Need Help with defining highlight definition | Brian G <brian@xxxxxxxxxxxxxxxx> |