Home
last modified time | relevance | path

Searched refs:Lexer (Results 1 – 25 of 38) sorted by relevance

12

/dokuwiki/inc/Parsing/ParserMode/
H A DTable.php26 $this->Lexer->addEntryPattern('[\t ]*\n\^', $mode, 'table');
27 $this->Lexer->addEntryPattern('[\t ]*\n\|', $mode, 'table');
33 $this->Lexer->addPattern('\n\^', 'table');
34 $this->Lexer->addPattern('\n\|', 'table');
35 $this->Lexer->addPattern('[\t ]*:::[\t ]*(?=[\|\^])', 'table');
36 $this->Lexer->addPattern('[\t ]+', 'table');
37 $this->Lexer->addPattern('\^', 'table');
38 $this->Lexer->addPattern('\|', 'table');
39 $this->Lexer->addExitPattern('\n', 'table');
H A DPreformatted.php12 $this->Lexer->addEntryPattern('\n (?![\*\-])', $mode, 'preformatted');
13 $this->Lexer->addEntryPattern('\n\t(?![\*\-])', $mode, 'preformatted');
16 $this->Lexer->addPattern('\n ', 'preformatted');
17 $this->Lexer->addPattern('\n\t', 'preformatted');
23 $this->Lexer->addExitPattern('\n', 'preformatted');
H A DUnformatted.php11 $this->Lexer->addEntryPattern('<nowiki>(?=.*</nowiki>)', $mode, 'unformatted');
12 $this->Lexer->addEntryPattern('%%(?=.*%%)', $mode, 'unformattedalt');
18 $this->Lexer->addExitPattern('</nowiki>', 'unformatted');
19 $this->Lexer->addExitPattern('%%', 'unformattedalt');
20 $this->Lexer->mapHandler('unformattedalt', 'unformatted');
H A DListblock.php26 $this->Lexer->addEntryPattern('[ \t]*\n {2,}[\-\*]', $mode, 'listblock');
27 $this->Lexer->addEntryPattern('[ \t]*\n\t{1,}[\-\*]', $mode, 'listblock');
29 $this->Lexer->addPattern('\n {2,}[\-\*]', 'listblock');
30 $this->Lexer->addPattern('\n\t{1,}[\-\*]', 'listblock');
36 $this->Lexer->addExitPattern('\n', 'listblock');
H A DHtml.php11 $this->Lexer->addEntryPattern('<html>(?=.*</html>)', $mode, 'html');
12 $this->Lexer->addEntryPattern('<HTML>(?=.*</HTML>)', $mode, 'htmlblock');
18 $this->Lexer->addExitPattern('</html>', 'html');
19 $this->Lexer->addExitPattern('</HTML>', 'htmlblock');
H A DPhp.php11 $this->Lexer->addEntryPattern('<php>(?=.*</php>)', $mode, 'php');
12 $this->Lexer->addEntryPattern('<PHP>(?=.*</PHP>)', $mode, 'phpblock');
18 $this->Lexer->addExitPattern('</php>', 'php');
19 $this->Lexer->addExitPattern('</PHP>', 'phpblock');
H A DQuotes.php17 $this->Lexer->addSpecialPattern(
22 $this->Lexer->addSpecialPattern(
27 $this->Lexer->addSpecialPattern(
34 $this->Lexer->addSpecialPattern(
39 $this->Lexer->addSpecialPattern(
H A DWordblock.php5 use dokuwiki\Parsing\Lexer\Lexer; alias
34 $this->pattern .= $sep.'(?<=\b)(?i)'. Lexer::escape($badword).'(?-i)(?=\b)';
43 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'wordblock');
H A DSmiley.php5 use dokuwiki\Parsing\Lexer\Lexer; alias
28 $this->pattern .= $sep.'(?<=\W|^)'. Lexer::escape($smiley).'(?=\W|$)';
39 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'smiley');
H A DEntity.php5 use dokuwiki\Parsing\Lexer\Lexer; alias
30 $this->pattern .= $sep. Lexer::escape($entity);
41 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'entity');
H A DQuote.php26 $this->Lexer->addEntryPattern('\n>{1,}', $mode, 'quote');
32 $this->Lexer->addPattern('\n>{1,}', 'quote');
33 $this->Lexer->addExitPattern('\n', 'quote');
H A DCode.php11 $this->Lexer->addEntryPattern('<code\b(?=.*</code>)', $mode, 'code');
17 $this->Lexer->addExitPattern('</code>', 'code');
H A DFile.php11 $this->Lexer->addEntryPattern('<file\b(?=.*</file>)', $mode, 'file');
17 $this->Lexer->addExitPattern('</file>', 'file');
H A DFootnote.php29 $this->Lexer->addEntryPattern(
39 $this->Lexer->addExitPattern(
H A DInternallink.php12 $this->Lexer->addSpecialPattern("\[\[.*?\]\](?!\])", $mode, 'internallink');
H A DLinebreak.php11 $this->Lexer->addSpecialPattern('\x5C{2}(?:[ \t]|(?=\n))', $mode, 'linebreak');
H A DMultiplyentity.php15 $this->Lexer->addSpecialPattern(
H A DHeader.php12 $this->Lexer->addSpecialPattern(
H A DHr.php11 $this->Lexer->addSpecialPattern('\n[ \t]*-{4,}[ \t]*(?=\n)', $mode, 'hr');
H A DMedia.php12 $this->Lexer->addSpecialPattern("\{\{(?:[^\}]|(?:\}[^\}]))+\}\}", $mode, 'media');
H A DNocache.php11 $this->Lexer->addSpecialPattern('~~NOCACHE~~', $mode, 'nocache');
H A DCamelcaselink.php11 $this->Lexer->addSpecialPattern(
H A DNotoc.php11 $this->Lexer->addSpecialPattern('~~NOTOC~~', $mode, 'notoc');
H A DRss.php11 $this->Lexer->addSpecialPattern("\{\{rss>[^\}]+\}\}", $mode, 'rss');
/dokuwiki/inc/Parsing/
H A DParser.php6 use dokuwiki\Parsing\Lexer\Lexer; alias
19 /** @var Lexer $lexer */
45 $this->lexer = new Lexer($this->handler, 'base', true);
47 $this->modes['base']->Lexer = $this->lexer;
63 $Mode->Lexer = $this->lexer; // FIXME should be done by setter

12