Lines Matching +full:rev +full:- +full:parse

44         $this->callWriter = new CallWriter($this);
57 $this->callWriter->writeCall($call);
67 return $this->callWriter;
77 $this->callWriter = $callWriter;
88 if (!isset($this->status[$status])) return null;
89 return $this->status[$status];
100 $this->status[$status] = $value;
103 /** @deprecated 2019-10-31 use addCall() instead */
107 $this->addCall($handler, $args, $pos);
122 $this->callWriter->writeCall($call);
135 $this->callWriter->finalise();
137 if ($this->status['section']) {
138 $last_call = end($this->calls);
139 $this->calls[] = ['section_close', [], $last_call[2]];
142 if ($this->rewriteBlocks) {
144 $this->calls = $B->process($this->calls);
149 array_unshift($this->calls, ['document_start', [], 0]);
150 $last_call = end($this->calls);
151 $this->calls[] = ['document_end', [], $last_call[2]];
162 $call = current($this->calls);
164 next($this->calls); //advance the pointer
178 * @param string $options space separated list of key-value pairs,
180 * @return array|null Array of key-value pairs $array['key'] = 'value';
255 $this->addCall($name . '_open', [], $pos);
258 $this->addCall($name . '_close', [], $pos);
261 $this->addCall('cdata', [$match], $pos);
298 $data = $plugin->handle($match, $state, $pos, $this);
301 $this->addPluginCall($pluginname, $data, $state, $pos, $match);
315 $this->addCall('cdata', [$match], $pos);
331 $level = 7 - strspn($title, '=');
336 if ($this->status['section']) $this->addCall('section_close', [], $pos);
338 $this->addCall('header', [$title, $level, $pos], $pos);
340 $this->addCall('section_open', [$level], $pos);
341 $this->status['section'] = true;
353 $this->addCall('notoc', [], $pos);
365 $this->addCall('nocache', [], $pos);
377 $this->addCall('linebreak', [], $pos);
389 $this->addCall('eol', [], $pos);
401 $this->addCall('hr', [], $pos);
413 $this->nestingTag($match, $state, $pos, 'strong');
425 $this->nestingTag($match, $state, $pos, 'emphasis');
437 $this->nestingTag($match, $state, $pos, 'underline');
449 $this->nestingTag($match, $state, $pos, 'monospace');
461 $this->nestingTag($match, $state, $pos, 'subscript');
473 $this->nestingTag($match, $state, $pos, 'superscript');
485 $this->nestingTag($match, $state, $pos, 'deleted');
497 if (!isset($this->footnote)) $this->footnote = false;
501 … // footnotes can not be nested - however due to limitations in lexer it can't be prevented
503 if ($this->footnote) {
504 $this->addCall('cdata', [$match], $pos);
507 $this->footnote = true;
509 $this->callWriter = new Nest($this->callWriter, 'footnote_close');
510 $this->addCall('footnote_open', [], $pos);
514 if (!$this->footnote) {
515 $this->addCall('cdata', [$match], $pos);
519 $this->footnote = false;
520 $this->addCall('footnote_close', [], $pos);
523 $reWriter = $this->callWriter;
524 $this->callWriter = $reWriter->process();
527 $this->addCall('cdata', [$match], $pos);
543 $this->callWriter = new Lists($this->callWriter);
544 $this->addCall('list_open', [$match], $pos);
547 $this->addCall('list_close', [], $pos);
549 $reWriter = $this->callWriter;
550 $this->callWriter = $reWriter->process();
553 $this->addCall('list_item', [$match], $pos);
556 $this->addCall('cdata', [$match], $pos);
571 $this->addCall('unformatted', [$match], $pos);
586 $this->callWriter = new Preformatted($this->callWriter);
587 $this->addCall('preformatted_start', [], $pos);
590 $this->addCall('preformatted_end', [], $pos);
592 $reWriter = $this->callWriter;
593 $this->callWriter = $reWriter->process();
596 $this->addCall('preformatted_newline', [], $pos);
599 $this->addCall('preformatted_content', [$match], $pos);
617 $this->callWriter = new Quote($this->callWriter);
618 $this->addCall('quote_start', [$match], $pos);
622 $this->addCall('quote_end', [], $pos);
624 $reWriter = $this->callWriter;
625 $this->callWriter = $reWriter->process();
629 $this->addCall('quote_newline', [$match], $pos);
633 $this->addCall('cdata', [$match], $pos);
648 return $this->code($match, $state, $pos, 'file');
671 if ($param[0] == '-') $param[0] = null;
674 $param [] = $this->parse_highlight_options($options[0]);
676 $this->addCall($type, $param, $pos);
689 $this->addCall('acronym', [$match], $pos);
701 $this->addCall('smiley', [$match], $pos);
713 $this->addCall('wordblock', [$match], $pos);
725 $this->addCall('entity', [$match], $pos);
738 $this->addCall('multiplyentity', [$matches[0][0], $matches[0][1]], $pos);
750 $this->addCall('singlequoteopening', [], $pos);
762 $this->addCall('singlequoteclosing', [], $pos);
774 $this->addCall('apostrophe', [], $pos);
786 $this->addCall('doublequoteopening', [], $pos);
787 $this->status['doublequote']++;
799 if ($this->status['doublequote'] <= 0) {
800 $this->doublequoteopening($match, $state, $pos);
802 $this->addCall('doublequoteclosing', [], $pos);
803 $this->status['doublequote'] = max(0, --$this->status['doublequote']);
816 $this->addCall('camelcaselink', [$match], $pos);
846 $this->addCall(
853 $this->addCall(
858 } elseif (preg_match('#^([a-z0-9\-\.+]+?)://#i', $link[0])) {
860 $this->addCall(
866 // E-Mail (pattern above is defined in inc/mail.php)
867 $this->addCall(
874 $this->addCall(
881 $this->addCall(
899 $this->addCall('filelink', [$match, null], $pos);
911 $this->addCall('windowssharelink', [$match, null], $pos);
925 $this->addCall(
952 $p['reverse'] = (preg_match('/rev/', $params));
965 $this->addCall('rss', [$link, $p], $pos);
990 $this->addCall('externallink', [$url, $title], $pos);
1003 $this->addCall('emaillink', [$email, null], $pos);
1017 $this->callWriter = new Table($this->callWriter);
1019 $this->addCall('table_start', [$pos + 1], $pos);
1021 $this->addCall('tableheader', [], $pos);
1023 $this->addCall('tablecell', [], $pos);
1028 $this->addCall('table_end', [$pos], $pos);
1030 $reWriter = $this->callWriter;
1031 $this->callWriter = $reWriter->process();
1036 $this->addCall('cdata', [$match], $pos);
1042 $this->addCall('cdata', [$match], $pos);
1044 $this->addCall('rowspan', [$match], $pos);
1046 $this->addCall('table_align', [$match], $pos);
1048 $this->addCall('table_align', [$match], $pos);
1050 $this->addCall('table_row', [], $pos);
1051 $this->addCall('tablecell', [], $pos);
1053 $this->addCall('table_row', [], $pos);
1054 $this->addCall('tableheader', [], $pos);
1056 $this->addCall('tablecell', [], $pos);
1058 $this->addCall('tableheader', [], $pos);
1068 //------------------------------------------------------------------------
1111 //parse width and height