Question: Is there a way to capture nested function defintions in a CLM, where one function is defined within the definition block of another? I suspect not, but would like confirmation before I give up. I see that the Python language module is NOT a CLM.
This was an enormously useful article. Your effort is much appreciated. I had spent several hours trying to puzzle out how to write a "Function Pattern", and was able to quickly figure it out after reading this and looking at the Lisp example. The other necessary reference was the chapter "Advanced Grep Topics" in "BBedit User Manual.pdf", a place where the extended regular expression syntax is clearly and concisely explained.
A newbie error I made which might be useful to document is that my earlier tries failed because I wrote the Function Pattern value as:
<string>
<![CDATA[regex]]>
</string>
and of course the whitespace on either side of the <![CDATA[regex]]> was included in the regular expression as evaluated by BBedit.