This website requires JavaScript.
Explore
Help
Sign In
vitalif
/
prettier
Watch
1
Star
0
Fork
You've already forked prettier
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
2c135433ae
prettier
/
tests
/
range_css
/
issue2267.css
2 lines
30 B
CSS
Raw
Normal View
History
Unescape
Escape
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-28 01:12:22 +03:00
.
x
{
}
<
<
<
PRETTIER_RANGE_END
>
>
>