summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorChris Smith <chris.eureka@jalakai.co.uk>2009-04-19 15:44:50 +0200
committerChris Smith <chris.eureka@jalakai.co.uk>2009-04-19 15:44:50 +0200
commit2895686a53a433ee6d243315ff6186de326f005f (patch)
tree033fe579d61d131f81922be264e9be941e4e8d34 /inc/parser
parentb446308f29808c2df119fd3d79cfb9ac2e49e7ac (diff)
downloadrpg-2895686a53a433ee6d243315ff6186de326f005f.tar.gz
rpg-2895686a53a433ee6d243315ff6186de326f005f.tar.bz2
add unit tests for correct pattern selection when patterns contain non-captured elements (e.g. boundaries, lookaheads & lookbehinds)
darcs-hash:20090419134450-f07c6-4ff7d226fcba002c840828336e73fb89cf48e3db.gz
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/lexer.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/parser/lexer.php b/inc/parser/lexer.php
index 78a8d04f5..86e818d9c 100644
--- a/inc/parser/lexer.php
+++ b/inc/parser/lexer.php
@@ -136,10 +136,9 @@ class Doku_LexerParallelRegex {
}
$idx = count($matches)-2;
-
list($pre, $post) = preg_split($this->_patterns[$idx].$this->_getPerlMatchingFlags(), $subject, 2);
-
$split = array($pre, $matches[0], $post);
+
return isset($this->_labels[$idx]) ? $this->_labels[$idx] : true;
}