Home
last modified time | relevance | path

Searched refs:Lexer (Results 1 – 25 of 36) sorted by last modified time

12

/dokuwiki/inc/Parsing/Lexer/
H A DLexer.php4 * Lexer adapted from Simple Test: http://sourceforge.net/projects/simpletest/
5 * For an intro to the Lexer see:
11 namespace dokuwiki\Parsing\Lexer;
17 * parser once. Lexer modes must not start with leading underscores.
19 class Lexer
18 class Lexer global() class
H A DParallelRegex.php4 * Lexer adapted from Simple Test: http://sourceforge.net/projects/simpletest/
5 * For an intro to the Lexer see:
11 namespace dokuwiki\Parsing\Lexer;
/dokuwiki/inc/Parsing/ParserMode/
H A DAbstractMode.php5 use dokuwiki\Parsing\Lexer\Lexer;
9 * modes with the Lexer.
15 /** @var Lexer $Lexer will be injected on loading FIXME this should be done by setter */
16 public $Lexer;
14 public $Lexer; global() variable in dokuwiki\\Parsing\\ParserMode\\AbstractMode
H A DAcronym.php28 $acronyms = array_map(['\\dokuwiki\\Parsing\\Lexer\\Lexer', 'escape'], $this->acronyms);
38 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'acronym');
H A DCode.php10 $this->Lexer->addEntryPattern('<code\b(?=.*</code>)', $mode, 'code');
16 $this->Lexer->addExitPattern('</code>', 'code');
H A DEntity.php5 use dokuwiki\Parsing\Lexer\Lexer; alias
29 $this->pattern .= $sep . Lexer::escape($entity);
40 $this->Lexer->addSpecialPattern($this->pattern, $mode, 'entity');
H A DEol.php16 $this->Lexer->addSpecialPattern('(?:^[ \t]*)?\n', $mode, 'eol');
H A DExternallink.php37 $this->Lexer->addSpecialPattern($pattern, $mode, 'externallink');
H A DFile.php10 $this->Lexer->addEntryPattern('<file\b(?=.*</file>)', $mode, 'file');
16 $this->Lexer->addExitPattern('</file>', 'file');
H A DHr.php10 $this->Lexer->addSpecialPattern('\n[ \t]*-{4,}[ \t]*(?=\n)', $mode, 'hr');
H A DInternallink.php11 $this->Lexer->addSpecialPattern("\[\[.*?\]\](?!\])", $mode, 'internallink');
H A DListblock.php25 $this->Lexer->addEntryPattern('[ \t]*\n {2,}[\-\*]', $mode, 'listblock');
26 $this->Lexer->addEntryPattern('[ \t]*\n\t{1,}[\-\*]', $mode, 'listblock');
28 $this->Lexer->addPattern('\n {2,}[\-\*]', 'listblock');
29 $this->Lexer->addPattern('\n\t{1,}[\-\*]', 'listblock');
35 $this->Lexer->addExitPattern('\n', 'listblock');
H A DMedia.php11 $this->Lexer->addSpecialPattern("\{\{(?:[^\}]|(?:\}[^\}]))+\}\}", $mode, 'media');
H A DMultiplyentity.php14 $this->Lexer->addSpecialPattern(
H A DNotoc.php10 $this->Lexer->addSpecialPattern('~~NOTOC~~', $mode, 'notoc');
H A DQuote.php25 $this->Lexer->addEntryPattern('\n>{1,}', $mode, 'quote');
31 $this->Lexer->addPattern('\n>{1,}', 'quote');
32 $this->Lexer->addExitPattern('\n', 'quote');
H A DRss.php10 $this->Lexer->addSpecialPattern("\{\{rss>[^\}]+\}\}", $mode, 'rss');
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 DWindowssharelink.php18 $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 DFilelink.php25 $this->Lexer->addSpecialPattern(
H A DFormatting.php88 $this->Lexer->addEntryPattern(
99 $this->Lexer->addExitPattern(
H A DHeader.php11 $this->Lexer->addSpecialPattern(
H A DTable.php25 $this->Lexer->addEntryPattern('[\t ]*\n\^', $mode, 'table');
26 $this->Lexer->addEntryPattern('[\t ]*\n\|', $mode, 'table');
32 $this->Lexer->addPattern('\n\^', 'table');
33 $this->Lexer->addPattern('\n\|', 'table');
34 $this->Lexer->addPattern('[\t ]*:::[\t ]*(?=[\|\^])', 'table');
35 $this->Lexer->addPattern('[\t ]+', 'table');
36 $this->Lexer->addPattern('\^', 'table');
37 $this->Lexer->addPattern('\|', 'table');
38 $this->Lexer->addExitPattern('\n', 'table');
/dokuwiki/lib/plugins/info/
H A Dsyntax.php44 $this->Lexer->addSpecialPattern('~~INFO:\w+~~', $mode, 'plugin_info');

12