summaryrefslogtreecommitdiff
path: root/platform/www/lib/plugins/wrap/syntax/spaninline.php
blob: cc7a6692984a42a399fc3fb1a5f76e9752cc1f71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/**
 * Alternate span syntax component for the wrap plugin
 *
 * Defines  <inline> ... </inline> 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_spaninline extends syntax_plugin_wrap_span {

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

}