mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
Hook up new token location data to parser.
This commit is contained in:
@@ -153,14 +153,10 @@
|
||||
|
||||
parser.lexer = {
|
||||
lex: function() {
|
||||
var tag, _ref1;
|
||||
_ref1 = this.tokens[this.pos++] || [''], tag = _ref1[0], this.yytext = _ref1[1], this.yylineno = _ref1[2];
|
||||
this.yylloc = {
|
||||
first_line: this.yylineno,
|
||||
last_line: this.yylineno,
|
||||
first_column: 0,
|
||||
last_column: 0
|
||||
};
|
||||
var tag, token;
|
||||
token = this.tokens[this.pos++] || [''];
|
||||
tag = token[0], this.yytext = token[1], this.yylineno = token[2];
|
||||
this.yylloc = token.locationData;
|
||||
return tag;
|
||||
},
|
||||
setInput: function(tokens) {
|
||||
|
||||
Reference in New Issue
Block a user