Files
test-repo/tests
Joseph Frazier 5f063ab168 Fix locEnd() for postcss parser (#2295)
* Fix locEnd() for postcss parser

`node.source` doesn't have an `end`, but `node.nodes[-1].source` does.

Fixes https://github.com/prettier/prettier/issues/2267

* Add regression test for https://github.com/prettier/prettier/issues/2267

See https://github.com/prettier/prettier/pull/2295#issuecomment-311484343

* Make locEnd() postcss fix more focused

This passes the tests again.

* Use getLast() instead of .slice()

See https://github.com/prettier/prettier/pull/2295#discussion_r124398553

* Move CSS range test into tests/range_css

This is so that the AST_COMPARE=1 tests don't try to parse CSS with Flow.
2017-06-27 15:12:22 -07:00
..
2017-05-24 10:52:12 -07:00
2017-05-27 13:20:19 -07:00
2017-05-24 10:52:12 -07:00
2017-05-24 10:52:12 -07:00
2017-06-07 11:51:32 -07:00
2017-04-12 17:26:44 -07:00
2017-06-21 15:40:19 -07:00
2017-05-05 21:39:11 -07:00
2017-06-21 15:13:51 -07:00