function listblock($match, $state, $pos)
{
switch ($state) {
case DOKU_LEXER_ENTER:
$ReWriter = new Doku_Handler_List($this->CallWriter);
$this->CallWriter =& $ReWriter;
$this->_addCall('list_open', array($match), $pos);
break;
case DOKU_LEXER_EXIT:
$this->_addCall('list_close', array(), $pos);
$this->CallWriter->process();
$ReWriter =& $this->CallWriter;
$this->CallWriter =& $ReWriter->CallWriter;
break;
case DOKU_LEXER_MATCHED:
$this->_addCall('list_item', array($match), $pos);
break;
case DOKU_LEXER_UNMATCHED:
$this->_addCall('cdata', array($match), $pos);
break;
}
return true;
}