change typeset-code to conform to text:color<%>'s interface

typeset-code assumes that a lexeme must be eof on an eof, however test:color<%> allows it to be anything. instead, type should be 'eof. This change makes typeset-code respect that.