for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace dokuwiki\Parsing\ParserMode;
class Quotes extends AbstractMode
{
/** @inheritdoc */
public function connectTo($mode)
global $conf;
$ws = '\s/\#~:+=&%@\-\x28\x29\]\[{}><"\''; // whitespace
$punc = ';,\.?!';
if ($conf['typography'] == 2) {
$this->Lexer->addSpecialPattern(
"(?<=^|[$ws])'(?=[^$ws$punc])",
$mode,
'singlequoteopening'
);
"(?<=^|[^$ws]|[$punc])'(?=$|[$ws$punc])",
'singlequoteclosing'
"(?<=^|[^$ws$punc])'(?=$|[^$ws$punc])",
'apostrophe'
}
"(?<=^|[$ws])\"(?=[^$ws$punc])",
'doublequoteopening'
"\"",
'doublequoteclosing'
public function getSort()
return 280;