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:
parent
b983b3fcdc
commit
e6a53bd852
4 changed files with 774 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue