Exclude node at rangeStart (#9704)

This commit is contained in:
fisker Cheung authored and GitHub committed 2020-11-30 12:29:48 +08:00
1 parent 902d524d2f
commit 05d20a63a4
11 files changed
+245 -29

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#### Fix node ends at `rangeStart` was formatted (#9704 by @fisker)
Previously a node ends at `rangeStart` in considered in range, now it's excluded.
<!-- prettier-ignore -->
```js
// Prettier stable
foo = 1.0000;bar = 1.0000;baz=1.0000;
^^^^^^^^^^^^^ Range
// Prettier stable
foo = 1.0;
bar = 1.0;baz=1.0000;
// Prettier master
foo = 1.0000;bar = 1.0;baz=1.0000;
```
_This effect other languages support range format too._