sway/swayfmt
Chris O'Brien ceb384bc93
Limit inner doc comment attributes to Module (#4113)
## Description
Ran on test branch & working as intended. Only beginning of file `//!`
is collected as `DocComment` with `DocStyle::Inner` which is only
collected at the `Module` parsing stage. This ensures that any `//!`
found after the module docs will be treated as normal comments for now.
Ref #4112 for tracking further progress in allowing inner doc comments
for `Item`.

## Checklist

- [x] I have linked to any relevant issues. Closes #4097 
- [x] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [x] I have added tests that prove my fix is effective or that my
feature works.
- [ ] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [x] I have done my best to ensure that my PR adheres to [the Fuel Labs
Code Review
Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md).
- [x] I have requested a review from the relevant team or maintainers.
2023-02-17 00:09:02 -06:00
..
src fix: empty fn comments (#4093) 2023-02-17 09:02:11 +08:00
tests Limit inner doc comment attributes to Module (#4113) 2023-02-17 00:09:02 -06:00
Cargo.toml Bump to v0.35.1 (#4088) 2023-02-15 16:56:49 -05:00
CONTRIBUTING.md docs: update swayfmt contributing (#3936) 2023-01-31 08:26:13 +08:00
README.md Adds swayfmt README/CONTRIBUTING (#2579) 2022-09-08 14:23:13 +00:00

swayfmt

A tool for formatting Sway code according to style guidelines.

Installation

To use swayfmt you'll need to install the forc-fmt plugin that will run the formatter. You can install the complete Fuel toolchain with fuelup, or for swayfmt only, see CONTRIBUTING.