From f43b6d3ab4d4788c8b5babddfcb2c53f5cfeb443 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Wed, 13 Jun 2007 19:38:17 +0200 Subject: [PATCH] some small improvement for smart quote parsing FS#1142 darcs-hash:20070613173817-7ad00-99fdc0bf868bff124ef7c5ec01ef3f58c51b36eb.gz --- inc/parser/parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/parser/parser.php b/inc/parser/parser.php index 577e1137c..ee6a8beae 100644 --- a/inc/parser/parser.php +++ b/inc/parser/parser.php @@ -758,8 +758,8 @@ class Doku_Parser_Mode_multiplyentity extends Doku_Parser_Mode { class Doku_Parser_Mode_quotes extends Doku_Parser_Mode { function connectTo($mode) { - $ws = '[\s/\#~:\.?+=&%@!\-;,\x28\x29\]\[{}><"\']'; // whitespace - $nws = '[^\s/\#~:\.?+=&%@!\-;,\x28\x29\]\[{}><"\']'; // non whitespace + $ws = '[\s/\#~:+=&%@\-;,\x28\x29\]\[{}><"\']'; // whitespace + $nws = '[^\s/\#~:+=&%@\-;,\x28\x29\]\[{}><"\']'; // non whitespace $this->Lexer->addSpecialPattern( "(?<=^|$ws)'(?=$nws)",$mode,'singlequoteopening' -- GitLab