[2.0] Small fix for my previous commit.
This commit is contained in:
parent
837e74da4a
commit
aee14e3147
@ -203,10 +203,13 @@ abstract class Lexer
|
|||||||
$matches = preg_split($regex, $input, -1, $flags);
|
$matches = preg_split($regex, $input, -1, $flags);
|
||||||
|
|
||||||
foreach ($matches as $match) {
|
foreach ($matches as $match) {
|
||||||
|
// Must remain before 'value' assignment since it can change content
|
||||||
|
$type = $this->_getType($match[0]);
|
||||||
|
|
||||||
$this->_tokens[] = array(
|
$this->_tokens[] = array(
|
||||||
'value' => $match[0],
|
'value' => $match[0],
|
||||||
'type' => $this->_getType($match[0]),
|
'type' => $type,
|
||||||
'position' => $match[1]
|
'position' => $match[1],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user