Re: [SMARTY-DEV] nested comments
| From: | Konstantin A. Pelepelin | Date: | Mon, 15 Dec 2003 09:10:40 +0000 |
| Subject: | Re: [SMARTY-DEV] nested comments | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1987@lists.php.net to get a copy of this message | ||
On Sun, 14 Dec 2003 21:14:03 -0800 (PST), Boots <jayboots@yahoo.com> wrote:
Here is a very simple modification to the regex which gives a different precedence for {** **} as per Monte's suggestion. Actually, this change should allow for any number of levels (eg. {*** ***} not that it really means much. The caveat is that this won't work properly unless the "higher-order" comments wrap the "lower-order" comments, so a better implementation would be welcome. I like it more.Currently I think it's possible to make a loop for eliminating any number of comment levels in their current syntax, but I need to look into code and think at spare time. Konstantin