Skip to content

Commit

Permalink
WIP README
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Jul 5, 2024
1 parent e669bc0 commit dc19bb3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ In addition to the CLI there is also the two function `Runic.format_file` and
## Formatting specification
This is a list of the rules and formatting transformations performed by Runic:
- No trailing whitespace
- Normalized line endings (`\r\n` -> `\n`) (TODO: Is this bad on Windows with Git's autocrlf? gofmt does it...)
- Hex/octal/binary literals are padded with zeroes to better highlight the resulting UInt
type
- Floating point literals are normalized to always have an integral and fractional part.
`E`-exponents are normalized to `e`-exponents. Unnecessary trailing/leading zeros from
integral, fractional, and exponent parts are removed.
This is a list of things that Runic currently is doing:
### Trailing space
Trailing space is removed, for example
```diff
-1 + 1
+1 + 1
```

0 comments on commit dc19bb3

Please sign in to comment.