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?