Files
coffeescript/test
Alan Pierce 6087c2c8fc Properly set location for string tokens ending in a newline (#4344)
This is an upstream port of https://github.com/decaffeinate/coffeescript/pull/9

The existing logic for computing the end location of a string was to take the
end of the string contents, then add the delimiter length to last_column. For
example, `"""abc"""` would have an end position three characters after the `c`.
However, if a string ended in a newline, then the end location for the string
contents would be one line above the end location for the string, so the proper
fix is to move the end location to the next line, not just to shift it to the
right.

This avoids a bug where the location data would sometimes reference a
non-existent location (one past the end of its line). It fixes the AST location
data, although as far as I know, it never has caused correctness issues in the
CoffeeScript output.
2016-10-23 09:41:46 +02:00
..
2015-01-15 19:44:14 +01:00
2011-04-23 13:35:15 -04:00
2016-09-26 15:33:44 +02:00
2015-01-05 15:40:04 -05:00
2011-06-02 01:49:28 -04:00
2016-06-02 09:04:58 +02:00