Skip to content
Permalink
Browse files

Allow enclosing keys in '...' as a general escape mechanism. Fixes #18.

  • Loading branch information...
LarsGit223 committed Aug 8, 2018
1 parent 6bd32f4 commit f1ff896507b7b3cca6f4b1a2342cdbb3a50c68be
Showing with 3 additions and 1 deletion.
  1. +3 −1 syntax.php
4 syntax.php 100644 → 100755
@@ -59,7 +59,9 @@ function handle($match, $state, $pos, Doku_Handler $handler) {
$this->lastClass = $class;
return array($state, '', $this->lastClass);
case DOKU_LEXER_UNMATCHED :
if (strlen($match) > 1) {
$length = strlen($match);
if ($length > 1 &&
!($match[0] == "'" && $match[$length-1] == "'")) {
$mpos = strpos($match, '-');
$ppos = strpos($match, '+');
if(!$mpos)

0 comments on commit f1ff896

Please sign in to comment.
You can’t perform that action at this time.