TruerWords Logo
Google
 
Web www.truerwords.net

Search TruerWords

Welcome
Sign Up  Log On

“RE: Building a Codeless Language Module with BBEdit 8.5 and (Ir-)Regular Expressions”

From: Read Roberts In Response To: 5712  Building a Codeless Language Module with BBEdit 8.5 and (Ir-)Regular Expressions
Date Posted: Wednesday, February 21, 2007 7:29:55 PM Replies: 1
   
Enclosures: None.
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.


 

Discussion Thread:
Trackbacks:

There are no trackbacks.


Until August 31
My Amazon sales
benefit the PMC

Homepage Links

Apr 1 - Aug 31
Ad revenue
benefits the PMC


TruerWords
is Seth Dillingham's
personal web site.
Truer words were never spoken.