Reworked CollapsingLexer to use a state machine like approach, which also fixes some bugs, like producing NEWLINE tokens followed by (DE)IDENNT tokens
Reworked CollapsingLexer to use a state machine like approach, which also fixes some bugs, like producing NEWLINE tokens followed by (DE)IDENNT tokens

jawher/hvitt