1<?php 2/** 3 * DokuWiki Plugin structodt (Syntax Component) 4 * 5 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 6 * @author Szymon Olewniczak <it@rid.pl> 7 */ 8 9// must be run within Dokuwiki 10use dokuwiki\plugin\structodt\meta\AggregationEditorTableOdt; 11 12if (!defined('DOKU_INC')) die(); 13 14class syntax_plugin_structodt_serial extends syntax_plugin_struct_serial 15{ 16 17 /** @var string which class to use for output */ 18 protected $tableclass = AggregationEditorTableOdt::class; 19 20 /** 21 * Connect lookup pattern to lexer. 22 * 23 * @param string $mode Parser mode 24 */ 25 public function connectTo($mode) 26 { 27 $this->Lexer->addSpecialPattern('----+ *struct odt serial *-+\n.*?\n----+', $mode, 'plugin_structodt_serial'); 28 } 29} 30 31// vim:ts=4:sw=4:et: