Exclude node at rangeStart (#9704)
This commit is contained in:
1 parent
902d524d2f
commit
05d20a63a4
11 files changed
+245
-29
No files matched your search
@@ -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._
|
||||
Reference in new issue
Block a user