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: Peter Heide In Response To: 5712  Building a Codeless Language Module with BBEdit 8.5 and (Ir-)Regular Expressions
Date Posted: Saturday, June 14, 2008 8:17:55 PM Replies: 1
   
Enclosures: None.
I'm a little confused by some differences between your article and the final language module posted.

In the article, your comment pattern searches for:
  • Anything after a semi-colon, until the end of the current line.
  • Anything after "#|", until either a "|#" or the end of the file.
  • Anything after #, until the end of the line.

Again in the article, your string pattern searches for:
  • Double quotes start and end strings, but the string can contain a double quote if it is immediately preceded by a backslash (so, quotes can be "escaped").
  • An open curly brace starts a string, and a close curly brace ends it. The string can contain a close curly brace if it is escaped with a backslash.
  • Strings can also start with "[text]" and end with "[/text]". These are known as tagged strings.

In the finished module, however, the comment pattern searches for:
  • Anything after a semi-colon, until the end of the current line.
  • Anything after "#|", until either a "|#" or the end of the file.
  • Anything starting with "[text]" and ending with "[/text]".

The module's string pattern only searches for paired double quotes (with allowances for escaped double quotes).

Is the published module in error, or am I missing something?

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.
More than the sum of my parts.