fixed bug where 'next' was not defined when compiling less with syntax errors