1<?php
2/**
3 * Hidden Comment Plugin: allows hidden comments in the wiki source
4 *
5 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 * @author     Esther Brunner <wikidesign@gmail.com>
7 */
8
9/**
10 * All DokuWiki plugins to extend the parser/rendering mechanism
11 * need to inherit from this class
12 */
13class syntax_plugin_comment extends DokuWiki_Syntax_Plugin {
14
15    function getType(){ return 'substition'; }
16    function getSort(){ return 321; }
17
18    function connectTo($mode) {
19        $this->Lexer->addSpecialPattern("^/\*.*?\*|\s+/\*.*?\*/", $mode, 'plugin_comment');
20    }
21
22    function handle($match, $state, $pos, Doku_Handler $handler){ return ''; }
23    function render($mode, Doku_Renderer $renderer, $data) { return true; }
24}
25