mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Fix incorrect token representation
The third element in a token should just be an object containing line number and column info. This PR fixes the problem with one of the tokens being set incorrectly.
This commit is contained in:
@@ -662,14 +662,12 @@
|
||||
if (interpolated) {
|
||||
ref3 = this.tokens, lastToken = ref3[ref3.length - 1];
|
||||
rparen = this.token(')', ')');
|
||||
rparen[2] = [
|
||||
')', ')', {
|
||||
first_line: lastToken[2].last_line,
|
||||
first_column: lastToken[2].last_column + 1,
|
||||
last_line: lastToken[2].last_line,
|
||||
last_column: lastToken[2].last_column + 1
|
||||
}
|
||||
];
|
||||
rparen[2] = {
|
||||
first_line: lastToken[2].last_line,
|
||||
first_column: lastToken[2].last_column + 1,
|
||||
last_line: lastToken[2].last_line,
|
||||
last_column: lastToken[2].last_column + 1
|
||||
};
|
||||
return rparen.stringEnd = true;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user