summaryrefslogtreecommitdiff
path: root/platform/www/lib/plugins/wrap/syntax/divblock.php
blob: 9bac0532550cdff63904fefb1774c6f8761451e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * Alternate div syntax component for the wrap plugin
 *
 * Defines  <block> ... </block> syntax
 *
 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
 * @author     Anika Henke <anika@selfthinker.org>
 */

require_once(dirname(__FILE__).'/div.php');

class syntax_plugin_wrap_divblock extends syntax_plugin_wrap_div {

    protected $special_pattern = '<block\b[^>\r\n]*?/>';
    protected $entry_pattern   = '<block\b.*?>(?=.*?</block>)';
    protected $exit_pattern    = '</block>';


}