Consider a "bugreport" plugin with the attached syntax.php file.
As you'll see if you activate it and add a <FIXME>foo</FIXME> in a page, the $match string passed to handler function in the DOKU_LEXER_ENTER and DOKU_LEXER_EXIT states is unreadable as it is, but it can be read if you make substr($match,1,-1).
Is this the normal behaviour? If it is, it should definitely be documented, as it made me (and most certainly most syntax pluin writers) loose a lot of time...
Thank you!