1<?php
2/**
3 * DokuWiki Plugin Typography; Syntax typography bgcolor (background-color)
4 *
5 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 * @author     Satoshi Sahara <sahara.satoshi@gmail.com>
7 *
8 */
9
10require_once(dirname(__FILE__).'/base.php');
11
12class syntax_plugin_typography_bgcolor extends syntax_plugin_typography_base
13{
14    /**
15     * Connect pattern to lexer
16     */
17    public function preConnect()
18    {
19        // drop 'syntax_' from class name
20        $this->mode = substr(get_class($this), 7);
21
22        // syntax pattern
23        $this->pattern[1] = '<bg\b.*?>(?=.*?</bg>)';
24        $this->pattern[4] = '</bg>';
25    }
26
27}
28