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

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

class syntax_plugin_wrap_spanwrap extends syntax_plugin_wrap_span {

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


}