Re: Need help adding function pattern to a custom language module

2021-01-01 Thread Neil Faiman
A possibly useful tip (for those who hate back-slashes): Instead of backslash-escaping a space in a ?:x regex, you can also use "[ ]" (i.e., a single-character character class containing just a space. Personally, I find it easier to read. Also, when I find myself putting a space character in a

Re: Need help adding function pattern to a custom language module

2021-01-01 Thread Joe Strout
Thank you! That was what I needed. To close the loop for future searchers, the error ("quantifier does not follow a repeatable item (error 112109)") was because I had the (?x: quantifier around the whole expression (telling PCRE to ignore inline comments and "most whitespace"), but was

Re: Need help adding function pattern to a custom language module

2021-01-01 Thread Rich Siegel
On 1 Jan 2021, at 11:19, Joe Strout wrote: I have a codeless language module (https://github.com/JoeStrout/miniscript-bbedit-lang-mod) which does a fine job of syntax coloring. Now I want to add a function pattern, so it can identify functions and support the function pop-up. Following the

Need help adding function pattern to a custom language module

2021-01-01 Thread Joe Strout
I have a codeless language module (https://github.com/JoeStrout/miniscript-bbedit-lang-mod) which does a fine job of syntax coloring. Now I want to add a function pattern, so it can identify functions and support the function pop-up. Following the example in the docs, I've developed a RegEx