Home
last modified time | relevance | path

Searched refs:Lexer (Results 1 – 25 of 36) sorted by path

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;
H A DStateStack.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/
H A DParser.php7 use dokuwiki\Parsing\Lexer\Lexer;
12 * Sets up the Lexer with modes and points it to the Handler
13 * For an intro to the Lexer see: wiki:parser
20 /** @var Lexer $lexer */
48 $this->lexer = new Lexer($this->handler, 'base', true);
50 $this->modes['base']->Lexer = $this->lexer;
67 $Mode->Lexer = $this->lexer; // FIXME should be done by setter
6 use dokuwiki\Parsing\Lexer\Lexer; global() alias
/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 DCamelcaselink.php10 $this->Lexer->addSpecialPattern(
H A DCode.php10 $this->Lexer->addEntryPattern('<code\b(?=.*</code>)', $mode, 'code');
16 $this->Lexer->addExitPattern('</code>', 'code');
H A DEmaillink.php11 $this->Lexer->addSpecialPattern('<' . PREG_PATTERN_VALID_EMAIL . '>', $mode, 'emaillink');
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 DFilelink.php25 $this->Lexer->addSpecialPattern(
H A DFootnote.php28 $this->Lexer->addEntryPattern(
38 $this->Lexer->addExitPattern(
H A DFormatting.php88 $this->Lexer->addEntryPattern(
99 $this->Lexer->addExitPattern(
H A DHeader.php11 $this->Lexer->addSpecialPattern(
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 DLinebreak.php10 $this->Lexer->addSpecialPattern('\x5C{2}(?:[ \t]|(?=\n))', $mode, 'linebreak');
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 DNocache.php10 $this->Lexer->addSpecialPattern('~~NOCACHE~~', $mode, 'nocache');
H A DNotoc.php10 $this->Lexer->addSpecialPattern('~~NOTOC~~', $mode, 'notoc');

12