Yeah I am likely in the weeds and the problem worked out another way. 

The reason I was wondering if you could target a sub-pattern with Keyword 
Pattern was that I had a list of keywords: variables, and a list of keywords: 
commands. It turns out a couple keywords appear in both lists. 

I realized that I only care about the variables keywords in particular 
contexts, so a larger pattern. But I’d still like the keyword colored as a 
variable, the sub-pattern. 

Now with a clearer head I realize that doesn’t really make sense. So yeah, I 
got way way in the weeds and simplified what I was doing. 



> On Aug 26, 2021, at 9:09 AM, jj <[email protected]> wrote:
> 
> 
> Christopher,
> 
> For what I know Function Patterns use named subpatterns in order to capture 
> function names and ranges for the navigation bar Functions menu and for the 
> code folding.
> 
> It is not clear to me what will be the use of keyword subpattern captures.
> 
> If you don't find an answer to your question in the documentation, you should 
> send an mail to the BBEdit support team ([email protected]) with a clear 
> description of your question and what you intend to do, including examples, 
> expected results, etc.
> 
> Codeless Language Modules documentation is available here:
>     https://www.barebones.com/support/develop/clm.html
>     https://www.barebones.com/support/technotes/language-module-changes.html
> 
> Best regards,
> 
> Jean 
> 
> 
>> On Thursday, August 26, 2021 at 8:47:40 AM UTC+2 Christopher Waterman wrote:
>> Jean
>> 
>> Again thanks for the help with BBLMRunColors. That really got me off of the 
>> right foot.
>> I’ve discover how you can map them to each other and to builtin RunKinds. 
>> Pretty neat.
>> 
>> I have a question regarding BBLMKeywordPatterns. Do you know if you can make 
>> it match a named sub-pattern for coloring? 
>> Similar to the way Function Pattern works. Maybe there is a magic name or 
>> something. 😉 
>> 
>> Thanks,
>> — Chris(topher)?
>> 
>> 
>> 
>>>> On Aug 24, 2021, at 1:43 AM, jj <[email protected]> wrote:
>>>> 
>>> 
>>> Hi Christopher,
>>> 
>>> Here is a minimal Codeless Language Module for an hypothetical 
>>> "Christopher" language that demonstrates the use of color runs.
>>> Save it as Christopher.plist in ~/Library/Application 
>>> Support/BBEdit/Language Modules.
>>> 
>> 
>>> ...
>> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "[email protected]" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/770e89c3-91bc-44b6-8b83-021f92b9e388n%40googlegroups.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/2CF61818-FA8A-4EB9-AE7A-8AD410D1BE7B%40rustydogink.com.

Reply via email to