<?php
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
require_once(DOKU_PLUGIN.'syntax.php');
require_once(__DIR__. '/../common.php');

class syntax_plugin_bbcodeextensions_del extends BBCodeExt_simpletag_plugin_base {

    //function getType() { return 'disabled'; }
    //function getPType() { return 'normal'; }
    //function getAllowedTypes() { return array('formatting', 'disabled'); }   
    //function getSort() { return 140; }
    function connectTo($mode){
		$this->settextwraps('~~', '~~');
		$this->setHTMLtag('del');
        $this->Lexer->addEntryPattern($this->makepatterns('del')[0], $mode, 'plugin_bbcodeextensions_del');
    }
    function postConnect() { 
		$this->Lexer->addExitPattern($this->makepatterns('del')[1] ,'plugin_bbcodeextensions_del'); 
	}

}
