1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

fixing the lexer for indented files

This commit is contained in:
Jeremy Ashkenas 2010-02-13 02:16:31 -05:00
parent b983b3fcdc
commit e6a53bd852
4 changed files with 774 additions and 3 deletions

View file

@ -229,7 +229,9 @@
this.token('OUTDENT', last_indent);
move_out -= last_indent;
}
this.token('TERMINATOR', "\n");
if (!(this.tag() === 'TERMINATOR')) {
this.token('TERMINATOR', "\n");
}
return true;
};
// Matches and consumes non-meaningful whitespace.