Re: Trouble creating a CLM

2024-01-16 Thread Joaquin Adiego
Hi, JJ I think your point is very well taken and explains the behavior. As Maarten comments, I will contact Bare Bones sport explaining the case. It's the first CLM I'm doing and I seem to have chosen a "unruly" language for it.  Regards. El lunes, 15 de enero de 2024 a las 21:46:15 UTC+1,

Re: Trouble creating a CLM

2024-01-15 Thread Maarten Sneep
Hi Joaquin, > On 15 Jan 2024, at 16:29, Joaquin Adiego wrote: > > Hi Maarten, > > Thank you for your kind reply. I have already tested the expression you > suggest (I haven't tried that variant yet) and the result is the same. The > fact is that it is a bit strange that it works for one

Re: Trouble creating a CLM

2024-01-15 Thread jj
Hi Joaquin, My guess is that keywords are whitespace separated character runs – they don't contain whitespace. BBEdit probably chunks the keywords "before" matching against the regular expression chunk by chunk. For example what your regular expression matches against is the string "label2:",

Re: Trouble creating a CLM

2024-01-15 Thread Joaquin Adiego
Hi Maarten, Thank you for your kind reply. I have already tested the expression you suggest (I haven't tried that variant yet) and the result is the same. The fact is that it is a bit strange that it works for one subexpression and not for another very similar one. Regards. El domingo, 14 de

Re: Trouble creating a CLM

2024-01-14 Thread Maarten Sneep
Hi, I think you need to anchor the whole expression: (?x: ^(([a-zA-Z_]{1}[a-zA-Z0-9_]*:)| ([1-9]{1}[0-9]*)) ) (I have not tested this yet). Maarten > On 14 Jan 2024, at 11:32, Joaquin Adiego wrote: > > Hi, > > I'm developing a codeless language module for Boriel ZX Basic. Everything >