dfinity / prettier-plugin-motoko

A code formatter for the Motoko smart contract language.
Apache License 2.0
28 stars 1 forks source link

Adjust whitespace logic for addition/subtraction #145

Closed rvanasa closed 1 week ago

rvanasa commented 1 week ago

Improves the whitespace logic for situations with token-tree ambiguity between addition / positive numbers and subtraction / negative numbers. For instance, x-5 now formats to x - 5 instead of x -5.