well well well, switch off white space skipping and everything works hunky dorrey. I must have written the parser correctly for a change :D